Get rid of doom-pre-init-hook
This commit is contained in:
parent
ed5e8849cc
commit
f8b9cff4aa
3 changed files with 39 additions and 46 deletions
|
@ -268,7 +268,10 @@ to least)."
|
|||
(unless (or force-p noninteractive)
|
||||
(doom//reload-package-autoloads))))
|
||||
;; Initialize Doom core
|
||||
(require 'core-os)
|
||||
(unless noninteractive
|
||||
(add-hook! 'emacs-startup-hook
|
||||
#'(doom|post-init doom|display-benchmark))
|
||||
(require 'core-ui)
|
||||
(require 'core-editor)
|
||||
(require 'core-projects)
|
||||
|
@ -282,10 +285,6 @@ non-nil."
|
|||
;; Set `doom-init-modules-p' early, so `doom-pre-init-hook' won't infinitely
|
||||
;; recurse by accident if any of them need `doom-initialize-modules'.
|
||||
(setq doom-init-modules-p t)
|
||||
(unless noninteractive
|
||||
(add-hook! 'emacs-startup-hook
|
||||
#'(doom|post-init doom|display-benchmark)))
|
||||
(run-hooks 'doom-pre-init-hook)
|
||||
(when doom-private-dir
|
||||
(let ((load-prefer-newer t))
|
||||
(load (expand-file-name "init" doom-private-dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue