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:
parent
8b5714bdfa
commit
17ad5594cf
1 changed files with 1 additions and 1 deletions
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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue