Make interactive doom/compile less destructive

It would reload all files; which is harmless, but does unnecessarily
inflate variables that get push-ed or nconc-ed to. It's best to compile
from the command line.
This commit is contained in:
Henrik Lissner 2017-06-20 15:59:47 +02:00
parent f4e3080432
commit 345b704a0d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -525,7 +525,7 @@ If ONLY-RECOMPILE-P is non-nil, only recompile out-of-date files."
(interactive "P")
;; Ensure all relevant config files are loaded and up-to-date. This way we
;; don't need eval-when-compile and require blocks scattered all over.
(doom-initialize-packages t t)
(doom-initialize-packages t noninteractive)
(let ((targets
(cond ((equal (car command-line-args-left) "--")
(cl-loop for file in (cdr command-line-args-left)