Minor refactor of doom-initialize-packages
This commit is contained in:
parent
85c6d06c3f
commit
644dc17e32
1 changed files with 1 additions and 9 deletions
|
@ -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)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue