Fix conflict between private & default autodefs
e.g. If you had a ~/.doom.d/modules/tools/lsp/autoload.el that defined an lsp! autodef, it would be indexed and included in ~/.emacs.d/.local/autoloads.el *before* the lsp! autodef from the original ~/.emacs.d/modules/tools/lsp/autoload.el.
This commit is contained in:
parent
91c00d4756
commit
079b748217
1 changed files with 9 additions and 7 deletions
|
@ -211,13 +211,15 @@ those directories. The first returned path is always `doom-private-dir'."
|
||||||
(declare (pure t) (side-effect-free t))
|
(declare (pure t) (side-effect-free t))
|
||||||
(append (list doom-private-dir)
|
(append (list doom-private-dir)
|
||||||
(if module-dirs
|
(if module-dirs
|
||||||
(doom-files-in (if (listp module-dirs)
|
(mapcar (lambda (m) (doom-module-locate-path (car m) (cdr m)))
|
||||||
module-dirs
|
(doom-files-in (if (listp module-dirs)
|
||||||
doom-modules-dirs)
|
module-dirs
|
||||||
:type 'dirs
|
doom-modules-dirs)
|
||||||
:mindepth 1
|
:map #'doom-module-from-path
|
||||||
:depth 1)
|
:type 'dirs
|
||||||
(cl-loop for plist being the hash-values of (doom-modules)
|
:mindepth 1
|
||||||
|
:depth 1))
|
||||||
|
(cl-loop for plist being the hash-values of doom-modules
|
||||||
collect (plist-get plist :path)))
|
collect (plist-get plist :path)))
|
||||||
nil))
|
nil))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue