2014-08-27 12:44:17 +00:00
|
|
|
(require 'guix-autoloads)
|
2015-10-15 20:41:27 +00:00
|
|
|
(require 'guix-emacs)
|
2014-08-27 12:44:17 +00:00
|
|
|
|
2014-11-30 20:38:43 +00:00
|
|
|
(defcustom guix-package-enable-at-startup t
|
|
|
|
"If non-nil, activate Emacs packages installed in a user profile.
|
|
|
|
Set this variable to nil before requiring `guix-init' file to
|
|
|
|
avoid loading autoloads of Emacs packages installed in
|
|
|
|
`guix-user-profile'."
|
|
|
|
:type 'boolean
|
|
|
|
:group 'guix)
|
|
|
|
|
2015-10-15 20:41:27 +00:00
|
|
|
(add-to-list 'load-path (guix-emacs-directory))
|
|
|
|
|
2014-11-30 20:38:43 +00:00
|
|
|
(when guix-package-enable-at-startup
|
2015-11-27 13:07:20 +00:00
|
|
|
(guix-emacs-load-autoloads))
|
2014-11-30 20:38:43 +00:00
|
|
|
|
2015-07-24 15:33:14 +00:00
|
|
|
(add-hook 'scheme-mode-hook 'guix-devel-activate-mode-maybe)
|
2015-10-31 19:01:45 +00:00
|
|
|
(add-hook 'shell-mode-hook 'guix-build-log-minor-mode-activate-maybe)
|
2015-07-24 15:33:14 +00:00
|
|
|
|
2014-08-27 12:44:17 +00:00
|
|
|
(provide 'guix-init)
|