about summary refs log tree commit diff
path: root/emacs-elisp/config/straight.el
blob: 06592a5e782cd3ecd506216661bd4fbb5747bcf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
;; Setup the straight package manager to use the use-package syntax
(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))

(setq straight-use-package-by-default t)