Skip to content

Commit d5eef2e

Browse files
committed
Update straight bootstrap to version 7
1 parent 844f8a1 commit d5eef2e

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

modules/config-package.el

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,26 @@
88

99
(eval-and-compile
1010
(setq straight-repository-branch "develop"
11-
straight-check-for-modifications 'live
11+
straight-check-for-modifications '(check-on-save)
1212
straight-use-package-version 'ensure
1313
straight-use-package-by-default t
1414
straight-recipes-gnu-elpa-use-mirror t)
1515

1616
(defvar bootstrap-version)
17-
(let ((bootstrap-file
18-
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
19-
(bootstrap-version 6))
20-
(unless (file-exists-p bootstrap-file)
21-
(with-current-buffer
22-
(url-retrieve-synchronously
23-
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
24-
'silent 'inhibit-cookies)
25-
(goto-char (point-max))
26-
(eval-print-last-sexp)))
27-
(load bootstrap-file nil 'nomessage)))
17+
(let ((bootstrap-file
18+
(expand-file-name
19+
"straight/repos/straight.el/bootstrap.el"
20+
(or (bound-and-true-p straight-base-dir)
21+
user-emacs-directory)))
22+
(bootstrap-version 7))
23+
(unless (file-exists-p bootstrap-file)
24+
(with-current-buffer
25+
(url-retrieve-synchronously
26+
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
27+
'silent 'inhibit-cookies)
28+
(goto-char (point-max))
29+
(eval-print-last-sexp)))
30+
(load bootstrap-file nil 'nomessage)))
2831

2932
;; =============================================
3033
;; Setup use-package

0 commit comments

Comments
 (0)