doom compile: add warning

This commit is contained in:
Henrik Lissner 2021-03-20 18:47:11 -04:00
parent ac46ae7eb3
commit a2ccae917e

View file

@ -21,6 +21,13 @@ and your private config files, respectively. To recompile your packages, use
doom-core-dir)) doom-core-dir))
(when private-p (when private-p
(list doom-private-dir))) (list doom-private-dir)))
(or (y-or-n-p
(concat "WARNING: Changes made to your config after compiling it won't take effect until\n"
"this command is rerun or you run 'doom clean'! It will also make error backtraces\n"
"much more difficult to decipher.\n\n"
"If you intend to use it anyway, remember this or it will come back to bite you!\n\n"
"Continue anyway?"))
(user-error "Aborted"))
(append (list (doom-glob doom-emacs-dir "init.el") (append (list (doom-glob doom-emacs-dir "init.el")
doom-core-dir) doom-core-dir)
(cl-remove-if-not (cl-remove-if-not