Add private module to load-path
This fixes autoload cookies in private autoload files (e.g. ~/.doom.d/autoload/file.el).
This commit is contained in:
parent
f8bf86e1a3
commit
d91481a9a0
2 changed files with 3 additions and 1 deletions
|
@ -175,7 +175,8 @@ it anyway."
|
||||||
load-path (append doom-package-load-path
|
load-path (append doom-package-load-path
|
||||||
doom-site-load-path
|
doom-site-load-path
|
||||||
(list doom-core-dir)
|
(list doom-core-dir)
|
||||||
doom-modules-dirs))))
|
doom-modules-dirs
|
||||||
|
doom-psuedo-module-dirs))))
|
||||||
|
|
||||||
(defun doom-initialize-autoloads ()
|
(defun doom-initialize-autoloads ()
|
||||||
"Ensures that `doom-autoload-file' exists and is loaded. Otherwise run
|
"Ensures that `doom-autoload-file' exists and is loaded. Otherwise run
|
||||||
|
|
|
@ -11,6 +11,7 @@ Doom Emacs.")
|
||||||
;; `doom-initialize-packages' will treat `+private-config-path' as the root of
|
;; `doom-initialize-packages' will treat `+private-config-path' as the root of
|
||||||
;; this module.
|
;; this module.
|
||||||
(add-to-list 'doom-psuedo-module-dirs +private-config-path)
|
(add-to-list 'doom-psuedo-module-dirs +private-config-path)
|
||||||
|
(add-to-list 'load-path +private-config-path)
|
||||||
|
|
||||||
;;
|
;;
|
||||||
(load (expand-file-name "init.el" +private-config-path)
|
(load (expand-file-name "init.el" +private-config-path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue