From 68e0694e29a19e4a1fccf4001269af7d40b26b73 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 3 Apr 2018 15:08:29 -0400 Subject: [PATCH] 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. --- core/core.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core.el b/core/core.el index 35a9346ef..b08b3b8f0 100644 --- a/core/core.el +++ b/core/core.el @@ -171,10 +171,11 @@ ability to invoke the debugger in debug mode." (defun doom|after-init () "Run `doom-init-hook' and `doom-post-init-hook', start the Emacs server, and 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)) (run-hook-wrapped hook #'doom-try-run-hook hook)) (unless noninteractive - (load (expand-file-name "config.el" doom-private-dir) t t) (when (display-graphic-p) (require 'server) (unless (server-running-p)