mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Don't init all of core in noninteractive sessions
You can therefore load ~/.emacs.d/init.el directly to bootstrap Doom for your own batch scripts.
This commit is contained in:
12
init.el
12
init.el
@ -47,9 +47,9 @@
|
|||||||
nil 'nomessage)
|
nil 'nomessage)
|
||||||
|
|
||||||
;; And let 'er rip!
|
;; And let 'er rip!
|
||||||
(add-hook 'window-setup-hook #'doom-display-benchmark-h)
|
(doom-initialize noninteractive)
|
||||||
(add-to-list 'command-switch-alist (cons "--restore" #'doom-restore-session-handler))
|
(unless noninteractive
|
||||||
|
(doom-initialize-core)
|
||||||
(doom-initialize)
|
(doom-initialize-modules)
|
||||||
(doom-initialize-core)
|
(add-hook 'window-setup-hook #'doom-display-benchmark-h)
|
||||||
(doom-initialize-modules)
|
(add-to-list 'command-switch-alist (cons "--restore" #'doom-restore-session-handler)))
|
||||||
|
Reference in New Issue
Block a user