Simplify core loading process (part 2)
This commit is contained in:
parent
65748c5809
commit
6e8726a624
2 changed files with 9 additions and 7 deletions
13
core/core.el
13
core/core.el
|
@ -149,7 +149,7 @@ ability to invoke the debugger in debug mode."
|
|||
nil)
|
||||
|
||||
(defun doom|finalize ()
|
||||
(unless doom-init-p
|
||||
(unless (or doom-init-p noninteractive)
|
||||
(dolist (hook '(doom-init-hook doom-post-init-hook))
|
||||
(run-hook-wrapped hook #'doom-try-run-hook hook))
|
||||
(setq doom-init-p t))
|
||||
|
@ -187,11 +187,12 @@ ability to invoke the debugger in debug mode."
|
|||
"%s in autoloads.el -> %s"
|
||||
(car ex) (error-message-string ex))))
|
||||
|
||||
(load! core-ui) ; draw me like one of your French editors
|
||||
(load! core-popups) ; taming sudden yet inevitable windows
|
||||
(load! core-editor) ; baseline configuration for text editing
|
||||
(load! core-projects) ; making Emacs project-aware
|
||||
(load! core-keybinds)) ; centralized keybind system + which-key
|
||||
(unless noninteractive
|
||||
(load! core-ui) ; draw me like one of your French editors
|
||||
(load! core-popups) ; taming sudden yet inevitable windows
|
||||
(load! core-editor) ; baseline configuration for text editing
|
||||
(load! core-projects) ; making Emacs project-aware
|
||||
(load! core-keybinds))) ; centralized keybind system + which-key
|
||||
|
||||
(add-hook! '(emacs-startup-hook doom-reload-hook)
|
||||
#'doom|finalize)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue