FIX move straight-check-for-modifications to before straight bootstrap
ENH disable automatic straight package updates
This commit is contained in:
parent
2908155986
commit
54fe5f30c7
23
init.el
23
init.el
|
@ -1,4 +1,17 @@
|
||||||
;; init the straight package manager
|
;;;; init the straight package manager
|
||||||
|
|
||||||
|
;; disable automatic package updates
|
||||||
|
(setq straight-check-for-modifications nil)
|
||||||
|
|
||||||
|
;; watch for repo modifications if we have python3 and watchexec
|
||||||
|
;; otherwise just use a save hook
|
||||||
|
;; (setq straight-check-for-modifications
|
||||||
|
;; (if (and (executable-find "python3")
|
||||||
|
;; (executable-find "watchexec"))
|
||||||
|
;; '(watch-files find-when-checking)
|
||||||
|
;; '(check-on-save find-when-checking)))
|
||||||
|
|
||||||
|
;; bootstrap straight
|
||||||
(defvar bootstrap-version)
|
(defvar bootstrap-version)
|
||||||
(let ((bootstrap-file
|
(let ((bootstrap-file
|
||||||
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
||||||
|
@ -12,14 +25,6 @@
|
||||||
(eval-print-last-sexp)))
|
(eval-print-last-sexp)))
|
||||||
(load bootstrap-file nil 'nomessage))
|
(load bootstrap-file nil 'nomessage))
|
||||||
|
|
||||||
;; watch for repo modifications if we have python3 and watchexec
|
|
||||||
;; otherwise just use a save hook
|
|
||||||
(setq straight-check-for-modifications
|
|
||||||
(if (and (executable-find "python3")
|
|
||||||
(executable-find "watchexec"))
|
|
||||||
'(watch-files find-when-checking)
|
|
||||||
'(check-on-save find-when-checking)))
|
|
||||||
|
|
||||||
;; install use-package itself
|
;; install use-package itself
|
||||||
(straight-use-package 'use-package)
|
(straight-use-package 'use-package)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue