mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -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)
|
||||||
|
Reference in New Issue
Block a user