Remove unnecessary interactive check in init.el
init.el should never be sourced non-interactively.
This commit is contained in:
parent
19899dac82
commit
aecf3e4e63
1 changed files with 4 additions and 5 deletions
3
init.el
3
init.el
|
@ -49,11 +49,10 @@
|
|||
(require 'core (concat user-emacs-directory "core/core"))
|
||||
|
||||
;; And let 'er rip!
|
||||
(unless noninteractive
|
||||
(add-hook 'window-setup-hook #'doom-display-benchmark-h)
|
||||
(when (cdr command-line-args)
|
||||
(add-to-list 'command-switch-alist
|
||||
(cons "--restore" #'doom-restore-session-handler))))
|
||||
(cons "--restore" #'doom-restore-session-handler)))
|
||||
|
||||
(doom-initialize)
|
||||
(doom-initialize-core)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue