Minor refactor of doom-initialize-packages

This commit is contained in:
Henrik Lissner 2018-05-25 19:25:47 +02:00
parent 85c6d06c3f
commit 644dc17e32
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -319,15 +319,7 @@ them."
;; `package-alist' ;; `package-alist'
(when (or force-p (not (bound-and-true-p package-alist))) (when (or force-p (not (bound-and-true-p package-alist)))
(setq load-path doom-site-load-path) (setq load-path doom-site-load-path)
(require 'package) (doom-ensure-packages-initialized t))
(setq package-activated-list nil
package--initialized nil)
(let (byte-compile-warnings)
(condition-case _
(quiet! (package-initialize))
('error (package-refresh-contents)
(setq doom--refreshed-p t)
(package-initialize)))))
;; `quelpa-cache' ;; `quelpa-cache'
(when (or force-p (not (bound-and-true-p quelpa-cache))) (when (or force-p (not (bound-and-true-p quelpa-cache)))