Move straight initialization to a separate file

This commit is contained in:
Ohad Livne 2025-06-04 22:45:11 +03:00
parent 49ae25a172
commit 030712337c
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
2 changed files with 16 additions and 15 deletions

View file

@ -0,0 +1,15 @@
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 6))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'use-package)
(setq straight-use-package-by-default t)