mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-27 14:23:43 -05:00
Optimize doom-initialize-packages for cold startup
This commit is contained in:
@@ -254,19 +254,20 @@ them."
|
|||||||
if (file-exists-p path)
|
if (file-exists-p path)
|
||||||
do (_load path)))
|
do (_load path)))
|
||||||
|
|
||||||
;; `package-alist'
|
(unless (eq force-p 'internal)
|
||||||
(when (or (eq force-p t) (not (bound-and-true-p package-alist)))
|
;; `package-alist'
|
||||||
(setq load-path doom-site-load-path)
|
(when (or force-p (not (bound-and-true-p package-alist)))
|
||||||
(require 'package)
|
(setq load-path doom-site-load-path)
|
||||||
(setq package-activated-list nil)
|
(require 'package)
|
||||||
(package-initialize))
|
(setq package-activated-list nil)
|
||||||
|
(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")))))))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user