Optimize doom-initialize-packages for cold startup
This commit is contained in:
parent
0e1b2453aa
commit
26514e2834
1 changed files with 13 additions and 12 deletions
|
@ -254,19 +254,20 @@ them."
|
||||||
if (file-exists-p path)
|
if (file-exists-p path)
|
||||||
do (_load path)))
|
do (_load path)))
|
||||||
|
|
||||||
|
(unless (eq force-p 'internal)
|
||||||
;; `package-alist'
|
;; `package-alist'
|
||||||
(when (or (eq force-p t) (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)
|
(require 'package)
|
||||||
(setq package-activated-list nil)
|
(setq package-activated-list nil)
|
||||||
(package-initialize))
|
(package-initialize))
|
||||||
|
|
||||||
;; `quelpa-cache'
|
;; `quelpa-cache'
|
||||||
(when (or (eq force-p t) (not (bound-and-true-p quelpa-cache)))
|
(when (or force-p (not (bound-and-true-p quelpa-cache)))
|
||||||
(require 'quelpa)
|
(require 'quelpa)
|
||||||
(setq quelpa-initialized-p nil)
|
(setq quelpa-initialized-p nil)
|
||||||
(or (quelpa-setup-p)
|
(or (quelpa-setup-p)
|
||||||
(error "Could not initialize quelpa"))))))
|
(error "Could not initialize quelpa")))))))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue