mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
187f80c6c5
* emacs/guix-guile.el (guix-guile-current-module): New function. * emacs/guix-devel.el: New file. * emacs.am (ELFILES): Add it. * doc/emacs.texi (Emacs Development): New node. (Emacs Interface): Add it. * doc/contributing.texi (The Perfect Setup): Mention it. * doc/guix.texi (Top): Add it. * emacs/guix-init.el: Add 'guix-devel-activate-mode-maybe' to 'scheme-mode-hook'.
17 lines
493 B
EmacsLisp
17 lines
493 B
EmacsLisp
(require 'guix-autoloads)
|
|
|
|
(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)
|
|
|
|
(when guix-package-enable-at-startup
|
|
(require 'guix-emacs)
|
|
(guix-emacs-load-autoloads 'all))
|
|
|
|
(add-hook 'scheme-mode-hook 'guix-devel-activate-mode-maybe)
|
|
|
|
(provide 'guix-init)
|