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:
Henrik Lissner 2018-02-16 23:26:40 -05:00
parent f8bf86e1a3
commit d91481a9a0
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 3 additions and 1 deletions

View file

@ -175,7 +175,8 @@ it anyway."
load-path (append doom-package-load-path
doom-site-load-path
(list doom-core-dir)
doom-modules-dirs))))
doom-modules-dirs
doom-psuedo-module-dirs))))
(defun doom-initialize-autoloads ()
"Ensures that `doom-autoload-file' exists and is loaded. Otherwise run

View file

@ -11,6 +11,7 @@ Doom Emacs.")
;; `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 'load-path +private-config-path)
;;
(load (expand-file-name "init.el" +private-config-path)