Add ALL-P parameter to doom-module-load-path
Allowing it to return path to *all* modules, whether or not they are activated.
This commit is contained in:
parent
6dc413c044
commit
acbad5ca01
1 changed files with 11 additions and 4 deletions
|
@ -128,10 +128,17 @@ This doesn't require modules to be enabled. For enabled modules us
|
||||||
(cons (intern (concat ":" module))
|
(cons (intern (concat ":" module))
|
||||||
(intern submodule))))))))
|
(intern submodule))))))))
|
||||||
|
|
||||||
(defun doom-module-load-path ()
|
(defun doom-module-load-path (&optional all-p)
|
||||||
"Return a list of absolute file paths to activated modules."
|
"Return a list of absolute file paths to activated modules. If ALL-P is
|
||||||
(append (cl-loop for plist being the hash-values of (doom-modules)
|
non-nil, return paths of possible modules, activated or otherwise."
|
||||||
collect (plist-get plist :path))
|
(append (if all-p
|
||||||
|
(doom-files-in doom-modules-dirs
|
||||||
|
:type 'dirs
|
||||||
|
:mindepth 1
|
||||||
|
:depth 1
|
||||||
|
:full t)
|
||||||
|
(cl-loop for plist being the hash-values of (doom-modules)
|
||||||
|
collect (plist-get plist :path)))
|
||||||
(list doom-private-dir)))
|
(list doom-private-dir)))
|
||||||
|
|
||||||
(defun doom-modules (&optional refresh-p)
|
(defun doom-modules (&optional refresh-p)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue