doom-initialize: letbind load-path to site load-path instead

PREMATURE OPTIMIZATION DETECTED.

EXTERMINATE. EXTERMINATE. EXTERMINATE.
This commit is contained in:
Henrik Lissner 2018-01-06 22:46:07 -05:00
parent 5cd29479f4
commit 379914ccd7
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -134,7 +134,7 @@ startup."
;; Called early during initialization; only use native (and cl-lib) functions! ;; Called early during initialization; only use native (and cl-lib) functions!
(when (or force-p (not doom-init-p)) (when (or force-p (not doom-init-p))
;; Speed things up with a `load-path' for only the bare essentials ;; Speed things up with a `load-path' for only the bare essentials
(let ((load-path doom--base-load-path)) (let ((load-path doom--site-load-path))
;; Ensure core folders exist, otherwise we get errors ;; Ensure core folders exist, otherwise we get errors
(dolist (dir (list doom-local-dir doom-etc-dir doom-cache-dir doom-packages-dir)) (dolist (dir (list doom-local-dir doom-etc-dir doom-cache-dir doom-packages-dir))
(unless (file-directory-p dir) (unless (file-directory-p dir)