Add benchmark hook & restore switch earlier
If the user wants to remove them for some reason.
This commit is contained in:
parent
0ac7facea7
commit
b63ce98731
2 changed files with 6 additions and 4 deletions
|
@ -543,7 +543,11 @@ to least)."
|
|||
(warn "Your Doom core autoloads file is missing"))
|
||||
(unless pkg-autoloads-p
|
||||
(warn "Your package autoloads file is missing"))
|
||||
(signal 'doom-autoload-error (list "Run `bin/doom refresh' to generate them"))))
|
||||
(signal 'doom-autoload-error (list "Run `bin/doom refresh' to generate them")))
|
||||
|
||||
(when doom-interactive-mode
|
||||
(add-hook 'window-setup-hook #'doom-display-benchmark-h 'append)
|
||||
(add-to-list 'command-switch-alist (cons "--restore" #'doom-restore-session-handler))))
|
||||
t))
|
||||
|
||||
(defun doom-initialize-core ()
|
||||
|
|
4
init.el
4
init.el
|
@ -50,6 +50,4 @@
|
|||
(if noninteractive
|
||||
(doom-initialize-packages)
|
||||
(doom-initialize-core)
|
||||
(doom-initialize-modules)
|
||||
(add-hook 'window-setup-hook #'doom-display-benchmark-h)
|
||||
(add-to-list 'command-switch-alist (cons "--restore" #'doom-restore-session-handler)))
|
||||
(doom-initialize-modules))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue