mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
f4044b586d
* emacs/guix-build-log.el (guix-build-log-minor-mode-activate): New variable. (guix-build-log-minor-mode-activate-maybe): New function. * emacs/guix-init.el: Add it to 'shell-mode-hook'. * doc/emacs.texi (Emacs Build Log): Mention it.
20 lines
610 B
EmacsLisp
20 lines
610 B
EmacsLisp
(require 'guix-autoloads)
|
|
(require 'guix-emacs)
|
|
|
|
(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)
|
|
|
|
(add-to-list 'load-path (guix-emacs-directory))
|
|
|
|
(when guix-package-enable-at-startup
|
|
(guix-emacs-load-autoloads 'all))
|
|
|
|
(add-hook 'scheme-mode-hook 'guix-devel-activate-mode-maybe)
|
|
(add-hook 'shell-mode-hook 'guix-build-log-minor-mode-activate-maybe)
|
|
|
|
(provide 'guix-init)
|