mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Add benchmark hook & restore switch earlier
If the user wants to remove them for some reason.
This commit is contained in:
@ -543,7 +543,11 @@ to least)."
|
|||||||
(warn "Your Doom core autoloads file is missing"))
|
(warn "Your Doom core autoloads file is missing"))
|
||||||
(unless pkg-autoloads-p
|
(unless pkg-autoloads-p
|
||||||
(warn "Your package autoloads file is missing"))
|
(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))
|
t))
|
||||||
|
|
||||||
(defun doom-initialize-core ()
|
(defun doom-initialize-core ()
|
||||||
|
4
init.el
4
init.el
@ -50,6 +50,4 @@
|
|||||||
(if noninteractive
|
(if noninteractive
|
||||||
(doom-initialize-packages)
|
(doom-initialize-packages)
|
||||||
(doom-initialize-core)
|
(doom-initialize-core)
|
||||||
(doom-initialize-modules)
|
(doom-initialize-modules))
|
||||||
(add-hook 'window-setup-hook #'doom-display-benchmark-h)
|
|
||||||
(add-to-list 'command-switch-alist (cons "--restore" #'doom-restore-session-handler)))
|
|
||||||
|
Reference in New Issue
Block a user