mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
b1b53df382
Fixes a regression introduced in 7741139080
.
Reported by Ludovic Courtès <ludo@gnu.org>.
Not all emacs packages have "...-autoloads.el" files, so there is a
chance that "~/.guix-profile/share/emacs/site-lisp" will not be added to
'load-path', so add it unconditionally.
* emacs/guix-init.el: Add guix emacs directory to 'load-path'. Move
requiring 'guix-emacs' to the top-level.
19 lines
540 B
EmacsLisp
19 lines
540 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)
|
|
|
|
(provide 'guix-init)
|