Fix doom-initialize-packages messing up load-path
This fixes issues with the doctor not being able to find certain packages (like evil-collection), and an issue where using the package management API (which calls doom-initialize-packages) breaks the current session by breaking the load-path.
This commit is contained in:
parent
e6a89e4bf9
commit
80ddf2122b
1 changed files with 2 additions and 2 deletions
|
@ -97,8 +97,8 @@ them."
|
|||
(unless (eq force-p 'internal)
|
||||
;; `package-alist'
|
||||
(when (or force-p (not (bound-and-true-p package-alist)))
|
||||
(setq load-path (cons doom-core-dir doom-site-load-path))
|
||||
(doom-ensure-packages-initialized 'force))
|
||||
(doom-ensure-packages-initialized 'force)
|
||||
(setq load-path (cl-remove-if-not #'file-directory-p load-path)))
|
||||
;; `quelpa-cache'
|
||||
(when (or force-p (not (bound-and-true-p quelpa-cache)))
|
||||
;; ensure un-byte-compiled version of quelpa is loaded
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue