Refactor to revolve module tree roots around doom! calls
Any module can now use a doom! call to declare a module tree root. This means that if you have a doom! block in ~/.emacs.d/modules/lang/org/init.el, then you can have submodules in ~/.emacs.d/modules/lang/org/modules/MODULE/SUBMODULE if you wanted to for some reason. This is only really truly useful for private modules. A doom! block in ~/.doom.d/init.el will recognize and enable modules in ~/.doom.d/modules/.
This commit is contained in:
parent
d04a1fa940
commit
bae226b94f
3 changed files with 32 additions and 30 deletions
|
@ -8,9 +8,9 @@
|
|||
Doom Emacs.")
|
||||
|
||||
;; Ensure `doom//reload-autoloads', `doom//byte-compile' and
|
||||
;; `doom-initialize-packages' all include this module in their operations.
|
||||
;; `doom-initialize-packages' will treat `+private-config-path' as the root of
|
||||
;; this module.
|
||||
(add-to-list 'doom-psuedo-module-dirs +private-config-path)
|
||||
(add-to-list 'doom-modules-dirs (expand-file-name "modules/" +private-config-path))
|
||||
|
||||
;;
|
||||
(load (expand-file-name "init.el" +private-config-path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue