Slight reformatting of 'doom refresh' & 'doom compile' output

This commit is contained in:
Henrik Lissner 2019-12-08 00:57:10 -05:00
parent ecb76d536b
commit dc8b3dd57d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 29 additions and 27 deletions

View file

@ -123,9 +123,9 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files."
(cl-return nil))
(print!
(info (if recompile-p
"Recompiling stale elc files..."
"Byte-compiling your config (may take a while)...")))
(start (if recompile-p
"Recompiling stale elc files..."
"Byte-compiling your config (may take a while)...")))
(print-group!
(require 'use-package)
(condition-case e
@ -200,4 +200,5 @@ module. This does not include your byte-compiled, third party packages.'"
finally do
(print! (if success
(success "All elc files deleted")
(info "No elc files to clean"))))))
(info "No elc files to clean"))))
t))

View file

@ -238,31 +238,32 @@ 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! (green "Initiating a refresh of Doom Emacs...\n"))
(let (success)
(when (file-exists-p doom-env-file)
(doom-cli-reload-env-file 'force))
(print! (start "Initiating a refresh of Doom Emacs..."))
(print-group!
(let (success)
(when (file-exists-p doom-env-file)
(doom-cli-reload-env-file 'force))
;; Ensures that no pre-existing state pollutes the generation of the new
;; autoloads files.
(mapc #'doom--cli-delete-autoloads-file
(list doom-autoload-file
doom-package-autoload-file))
(doom-initialize 'force 'noerror)
(doom-initialize-modules)
;; Ensures that no pre-existing state pollutes the generation of the new
;; autoloads files.
(mapc #'doom--cli-delete-autoloads-file
(list doom-autoload-file
doom-package-autoload-file))
(doom-initialize 'force 'noerror)
(doom-initialize-modules)
(doom-cli-reload-core-autoloads (not if-necessary-p))
(unwind-protect
(progn
(and (doom-cli-packages-install)
(setq success t))
(and (doom-cli-packages-build)
(setq success t))
(and (doom-cli-packages-purge purge-p 'builds-p purge-p)
(setq success t)))
(doom-cli-reload-package-autoloads (or success (not if-necessary-p)))
(doom-cli-byte-compile nil 'recompile))
t))
(doom-cli-reload-core-autoloads (not if-necessary-p))
(unwind-protect
(progn
(and (doom-cli-packages-install)
(setq success t))
(and (doom-cli-packages-build)
(setq success t))
(and (doom-cli-packages-purge purge-p 'builds-p purge-p)
(setq success t)))
(doom-cli-reload-package-autoloads (or success (not if-necessary-p)))
(doom-cli-byte-compile nil 'recompile))
t)))
(load! "cli/env")
(load! "cli/upgrade")