Fix core not loading byte-compiled private config files

This commit is contained in:
Henrik Lissner 2018-04-03 19:46:47 -04:00
parent d85a2a6af0
commit b6fab5da8d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -185,7 +185,7 @@ with functions that require it (like modeline segments)."
gc-cons-percentage 0.6 gc-cons-percentage 0.6
file-name-handler-alist nil)) file-name-handler-alist nil))
(load (expand-file-name "early-init.el" doom-private-dir) t t) (load (concat doom-private-dir "early-init") t t)
(require 'core-packages (concat doom-core-dir "core-packages")) (require 'core-packages (concat doom-core-dir "core-packages"))
(doom-initialize noninteractive) (doom-initialize noninteractive)
@ -197,13 +197,13 @@ with functions that require it (like modeline segments)."
(load! core-projects) ; making Emacs project-aware (load! core-projects) ; making Emacs project-aware
(load! core-keybinds)) ; centralized keybind system + which-key (load! core-keybinds)) ; centralized keybind system + which-key
(load (expand-file-name "init.el" doom-private-dir) t t) (load (concat doom-private-dir "init") t t)
(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 (unless noninteractive
(load (expand-file-name "config.el" doom-private-dir) t t)) (load (concat doom-private-dir "config") 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