Add doom-sync-{pre,post}-hook

This commit is contained in:
Henrik Lissner 2020-05-25 16:03:16 -04:00
parent 3139303874
commit 5cba174bd9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -375,11 +375,13 @@ stale."
(when (and (not inhibit-envvar-p) (when (and (not inhibit-envvar-p)
(file-exists-p doom-env-file)) (file-exists-p doom-env-file))
(doom-cli-reload-env-file 'force)) (doom-cli-reload-env-file 'force))
(run-hooks 'doom-sync-pre-hook)
(doom-cli-packages-install) (doom-cli-packages-install)
(doom-cli-packages-build) (doom-cli-packages-build)
(when update-p (when update-p
(doom-cli-packages-update)) (doom-cli-packages-update))
(doom-cli-packages-purge prune-p 'builds-p prune-p prune-p) (doom-cli-packages-purge prune-p 'builds-p prune-p prune-p)
(run-hooks 'doom-sync-post-hook)
(doom-autoloads-reload) (doom-autoloads-reload)
t)) t))