Revert da7f9019 & refactor doom init hooks

This commit is contained in:
Henrik Lissner 2018-08-21 04:27:14 +02:00
parent 9a4cce8d9a
commit 62977247c9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 4 additions and 10 deletions

View file

@ -305,7 +305,6 @@ and `doom-exit-window-hook'."
(if disable
(advice-remove (car spec) (cdr spec))
(advice-add (car spec) :around (cdr spec)))))
(add-hook 'doom-post-init-hook #'doom|init-switch-hooks)
(defun doom*load-theme-hooks (theme &rest _)
"Set up `doom-load-theme-hook' to run after `load-theme' is called."
@ -448,7 +447,8 @@ to least)."
(require 'core-os)
(when (or force-load-core-p (not noninteractive))
(add-hook 'emacs-startup-hook #'doom|display-benchmark)
(add-hook! 'emacs-startup-hook
#'(doom|init-switch-hooks doom|display-benchmark))
(require 'core-ui)
(require 'core-editor)