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/.
17 lines
597 B
EmacsLisp
17 lines
597 B
EmacsLisp
;;; config/private/init.el -*- lexical-binding: t; -*-
|
|
|
|
(defvar +private-config-path
|
|
(if (featurep! +xdg)
|
|
(expand-file-name "doom/" (or (getenv "XDG_CONFIG_HOME") "~/.config"))
|
|
"~/.doom.d")
|
|
"The directory that serves as the root of your external private config for
|
|
Doom Emacs.")
|
|
|
|
;; Ensure `doom//reload-autoloads', `doom//byte-compile' and
|
|
;; `doom-initialize-packages' will treat `+private-config-path' as the root of
|
|
;; this module.
|
|
(add-to-list 'doom-psuedo-module-dirs +private-config-path)
|
|
|
|
;;
|
|
(load (expand-file-name "init.el" +private-config-path)
|
|
'noerror 'nomessage)
|