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:
parent
be196cbe39
commit
b00f403fda
1 changed files with 6 additions and 6 deletions
8
init.el
8
init.el
|
@ -47,9 +47,9 @@
|
|||
nil 'nomessage)
|
||||
|
||||
;; And let 'er rip!
|
||||
(add-hook 'window-setup-hook #'doom-display-benchmark-h)
|
||||
(add-to-list 'command-switch-alist (cons "--restore" #'doom-restore-session-handler))
|
||||
|
||||
(doom-initialize)
|
||||
(doom-initialize noninteractive)
|
||||
(unless noninteractive
|
||||
(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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue