Load private config.el before doom init hooks

Used to load it too late, after customizations were initialized by
doom-init-hook and doom-post-init-hook hooks.
This commit is contained in:
Henrik Lissner 2018-04-03 15:08:29 -04:00
parent b12d7bde05
commit 68e0694e29
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -171,10 +171,11 @@ ability to invoke the debugger in debug mode."
(defun doom|after-init () (defun doom|after-init ()
"Run `doom-init-hook' and `doom-post-init-hook', start the Emacs server, and "Run `doom-init-hook' and `doom-post-init-hook', start the Emacs server, and
display the loading benchmark." display the loading benchmark."
(unless noninteractive
(load (expand-file-name "config.el" doom-private-dir) t t))
(dolist (hook '(doom-init-hook doom-post-init-hook)) (dolist (hook '(doom-init-hook doom-post-init-hook))
(run-hook-wrapped hook #'doom-try-run-hook hook)) (run-hook-wrapped hook #'doom-try-run-hook hook))
(unless noninteractive (unless noninteractive
(load (expand-file-name "config.el" doom-private-dir) t t)
(when (display-graphic-p) (when (display-graphic-p)
(require 'server) (require 'server)
(unless (server-running-p) (unless (server-running-p)