Add 2nd arg to doom-initialize to load core libs

This restores the correct value of noninteractive while core libs are
loading, so packages like recentf can avoid initializing when running
emacs non interactively (thus polluting output or possibly causing
errors).
This commit is contained in:
Henrik Lissner 2018-08-03 16:16:01 +02:00
parent ab4052b8dc
commit ea0f46b181
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 9 additions and 9 deletions

View file

@ -134,8 +134,9 @@ savehist file."
"^/var/folders/.+$"
;; ignore private DOOM temp files (but not all of them)
(lambda (file) (file-in-directory-p file doom-local-dir))))
(add-hook 'kill-emacs-hook #'recentf-cleanup)
(quiet! (recentf-mode +1)))
(unless noninteractive
(add-hook 'kill-emacs-hook #'recentf-cleanup)
(quiet! (recentf-mode +1))))
(def-package! server
:when (display-graphic-p)