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'
|
||||
(when (or force-p (not (bound-and-true-p package-alist)))
|
||||
(setq load-path doom-site-load-path)
|
||||
(require 'package)
|
||||
(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)))))
|
||||
(doom-ensure-packages-initialized t))
|
||||
|
||||
;; `quelpa-cache'
|
||||
(when (or force-p (not (bound-and-true-p quelpa-cache)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue