Initialize package.el on doom-initialize-packages

So that packages installed via package.el are still available.
This commit is contained in:
Henrik Lissner 2019-08-15 19:52:43 -04:00
parent bc8b6605db
commit 8d3536fa77
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -132,6 +132,9 @@ If FORCE-P is non-nil, do it anyway.
This ensure `doom-packages' is populated, if isn't aren't already. Use this This ensure `doom-packages' is populated, if isn't aren't already. Use this
before any of straight's or Doom's package management's API to ensure all the before any of straight's or Doom's package management's API to ensure all the
necessary package metadata is initialized and available for them." necessary package metadata is initialized and available for them."
(when (or force-p (not (bound-and-true-p package--initialized)))
(require 'package)
(package-initialize))
(when (or force-p (not doom-init-packages-p)) (when (or force-p (not doom-init-packages-p))
(doom-log "Initializing straight") (doom-log "Initializing straight")
(setq doom-init-packages-p t) (setq doom-init-packages-p t)