Refactor how we indent straight's progress output

More work up front, less work in the trenches.
This commit is contained in:
Henrik Lissner 2020-01-01 14:29:40 -05:00
parent 4f676bd218
commit 7a348f8784
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 43 additions and 29 deletions

View file

@ -239,9 +239,18 @@ It will ensure that unneeded packages are removed, all needed packages are
installed, autoloads files are up-to-date and no byte-compiled files have gone
stale."
:bare t
(print! (start "Initiating a refresh of Doom Emacs..."))
(print-group!
(let (success)
(let (success)
;; Ensures that no pre-existing state pollutes the generation of the new
;; autoloads files.
(dolist (file (list doom-autoload-file doom-package-autoload-file))
(delete-file file)
(delete-file (byte-compile-dest-file file)))
(doom-initialize 'force 'noerror)
(doom-initialize-modules)
(print! (start "Synchronizing your config with Doom Emacs..."))
(print-group!
(when (and (not inhibit-envvar-p)
(file-exists-p doom-env-file))
(doom-cli-reload-env-file 'force))