mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 13:28:12 -05:00
gnu: emacs: Use load-path instead of EMACSLOADPATH.
This enables the use of the subdirs.el feature of Emacs, where specifying a directory in EMACSLOADPATH translates into a `load-path' variable containing the directory and all its sub-directories. * gnu/packages/aux-files/emacs/guix-emacs.el (guix-emacs-autoload-packages): Use `load-path' directly instead of parsing EMACSLOADPATH. Reported-by: Leo Prikler <leo.prikler@student.tugraz.at> Signed-off-by: Clément Lassieur <clement@lassieur.org>
This commit is contained in:
parent
c320acd633
commit
903765f0d9
1 changed files with 2 additions and 3 deletions
|
@ -47,13 +47,12 @@ The files in the list do not have extensions (.el, .elc)."
|
|||
;; FIXME: The autoloads generated by the emacs-build-system are not byte
|
||||
;; compiled.
|
||||
(interactive)
|
||||
(let* ((emacs-load-path (getenv "EMACSLOADPATH"))
|
||||
(emacs-non-core-load-path-directories
|
||||
(let* ((emacs-non-core-load-path-directories
|
||||
;; Filter out core Elisp directories, which are already autoloaded
|
||||
;; by Emacs.
|
||||
(seq-filter (lambda (dir)
|
||||
(string-match-p "/share/emacs/site-lisp" dir))
|
||||
(split-string emacs-load-path ":")))
|
||||
load-path))
|
||||
(autoloads (mapcan #'guix-emacs-find-autoloads
|
||||
emacs-non-core-load-path-directories)))
|
||||
(mapc (lambda (f)
|
||||
|
|
Loading…
Reference in a new issue