Use new straight-base-dir variable
We can't phase out doom--straight-use-local-dir-a until I fix the issue with straight not reinstalling packages when their recipes change.
This commit is contained in:
parent
9b1c49149c
commit
879f3a660a
1 changed files with 4 additions and 4 deletions
|
@ -90,7 +90,8 @@ missing) and shouldn't be deleted.")
|
||||||
(if value (setq package-selected-packages value)))
|
(if value (setq package-selected-packages value)))
|
||||||
|
|
||||||
;;; straight
|
;;; straight
|
||||||
(setq straight-repository-branch "develop"
|
(setq straight-base-dir doom-local-dir
|
||||||
|
straight-repository-branch "develop"
|
||||||
straight-cache-autoloads nil ; we already do this, and better.
|
straight-cache-autoloads nil ; we already do this, and better.
|
||||||
;; Doom doesn't encourage you to modify packages in place. Disabling this
|
;; Doom doesn't encourage you to modify packages in place. Disabling this
|
||||||
;; makes 'doom refresh' instant (once everything set up), which is much
|
;; makes 'doom refresh' instant (once everything set up), which is much
|
||||||
|
@ -177,9 +178,8 @@ necessary package metadata is initialized and available for them."
|
||||||
(defvar bootstrap-version)
|
(defvar bootstrap-version)
|
||||||
(let* (;; Force straight to install into ~/.emacs.d/.local/straight instead of
|
(let* (;; Force straight to install into ~/.emacs.d/.local/straight instead of
|
||||||
;; ~/.emacs.d/straight by pretending `doom-local-dir' is our .emacs.d.
|
;; ~/.emacs.d/straight by pretending `doom-local-dir' is our .emacs.d.
|
||||||
(user-emacs-directory doom-local-dir)
|
(user-emacs-directory straight-base-dir)
|
||||||
(straight-dir (doom-path doom-local-dir "straight/"))
|
(bootstrap-file (doom-path straight-base-dir "straight/repos/straight.el/straight.el"))
|
||||||
(bootstrap-file (doom-path straight-dir "repos/straight.el/straight.el"))
|
|
||||||
(bootstrap-version 5))
|
(bootstrap-version 5))
|
||||||
(unless (featurep 'straight)
|
(unless (featurep 'straight)
|
||||||
(unless (or (require 'staight nil t)
|
(unless (or (require 'staight nil t)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue