Reduce doom-module-table calls significantly
This commit is contained in:
parent
11705d0920
commit
a390ef8deb
1 changed files with 22 additions and 22 deletions
|
@ -309,8 +309,7 @@ Use this before any of package.el, quelpa or Doom's package management's API to
|
|||
ensure all the necessary package metadata is initialized and available for
|
||||
them."
|
||||
(with-temp-buffer ; prevent buffer-local settings from propagating
|
||||
(let ((load-prefer-newer t) ; reduce stale code issues
|
||||
(doom-modules (doom-module-table)))
|
||||
(let ((load-prefer-newer t)) ; reduce stale code issues
|
||||
;; package.el and quelpa handle themselves if their state changes during
|
||||
;; the current session, but if you change an packages.el file in a module,
|
||||
;; there's no non-trivial way to detect that, so we give you a way to
|
||||
|
@ -338,6 +337,7 @@ them."
|
|||
(error "Could not initialize quelpa"))))
|
||||
|
||||
(when (or force-p (not doom-packages))
|
||||
(let ((doom-modules (doom-module-table)))
|
||||
(setq doom-packages nil)
|
||||
(cl-flet
|
||||
((_load
|
||||
|
@ -357,7 +357,7 @@ them."
|
|||
for path = (doom-module-path (car key) (cdr key) "packages.el")
|
||||
do (let ((doom--current-module key)) (_load path t)))
|
||||
(cl-loop for dir in doom-psuedo-module-dirs
|
||||
do (_load (expand-file-name "packages.el" dir) t))))))))
|
||||
do (_load (expand-file-name "packages.el" dir) t)))))))))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue