mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Don't force init in noninteractive sessions
This allows batch scripts to load $EMACSDIR/init.el to use Doom's API. Howevever, it puts the onus on the user to run `doom refresh` before trying to use it. This also indirectly addresses #2010
This commit is contained in:
2
init.el
2
init.el
@ -47,7 +47,7 @@
|
|||||||
nil 'nomessage)
|
nil 'nomessage)
|
||||||
|
|
||||||
;; And let 'er rip!
|
;; And let 'er rip!
|
||||||
(doom-initialize noninteractive)
|
(doom-initialize)
|
||||||
(unless noninteractive
|
(unless noninteractive
|
||||||
(doom-initialize-core)
|
(doom-initialize-core)
|
||||||
(doom-initialize-modules)
|
(doom-initialize-modules)
|
||||||
|
Reference in New Issue
Block a user