Call doom|finalize after doom-initialize-packages

doom-initialize-packages re-initializes certain important variables,
like gc-cons-threshold (which causes intermittent freezing when set too
high), without resetting them to sensible defaults. This ensures those
variable are reset afterwards.
This commit is contained in:
Henrik Lissner 2017-06-20 16:21:29 +02:00
parent 345b704a0d
commit e44f5d0457
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -205,7 +205,8 @@ This aggressively reloads core autoload files."
in (append (nreverse (file-expand-wildcards (expand-file-name "core*.el" doom-core-dir)))
(file-expand-wildcards (expand-file-name "autoload/*.el" doom-core-dir))
(doom--module-paths "config.el"))
do (funcall load-fn file t))))
do (funcall load-fn file t)))
(doom|finalize))
(when (or force-p (not doom-packages))
(setq doom-packages nil)
(funcall load-fn (expand-file-name "packages.el" doom-core-dir))