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))
|
||||
(append (list doom-private-dir)
|
||||
(if module-dirs
|
||||
(doom-files-in (if (listp module-dirs)
|
||||
module-dirs
|
||||
doom-modules-dirs)
|
||||
:type 'dirs
|
||||
:mindepth 1
|
||||
:depth 1)
|
||||
(cl-loop for plist being the hash-values of (doom-modules)
|
||||
(mapcar (lambda (m) (doom-module-locate-path (car m) (cdr m)))
|
||||
(doom-files-in (if (listp module-dirs)
|
||||
module-dirs
|
||||
doom-modules-dirs)
|
||||
:map #'doom-module-from-path
|
||||
:type 'dirs
|
||||
:mindepth 1
|
||||
:depth 1))
|
||||
(cl-loop for plist being the hash-values of doom-modules
|
||||
collect (plist-get plist :path)))
|
||||
nil))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue