mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
12f2490aa3
* emacs/guix-emacs.el: New file. * emacs.am (ELFILES): Add it. * emacs/guix-backend.el (guix-after-repl-operation-hook): Add 'guix-emacs-load-autoloads-maybe'. * emacs/guix-init.el.in: Autoload emacs packages. (guix-package-enable-at-startup): New variable.
21 lines
627 B
EmacsLisp
21 lines
627 B
EmacsLisp
(require 'guix-autoloads)
|
|
(require 'guix-emacs)
|
|
|
|
(defvar guix-load-path
|
|
(replace-regexp-in-string "${prefix}" "@prefix@" "@emacsuidir@")
|
|
"Directory with scheme files for \"guix.el\" package.")
|
|
|
|
(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))
|
|
|
|
(provide 'guix-init)
|