Remove unnecessary interactive check in init.el

init.el should never be sourced non-interactively.
This commit is contained in:
Henrik Lissner 2019-08-28 22:06:37 -04:00
parent 19899dac82
commit aecf3e4e63
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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-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)