-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.el
29 lines (19 loc) · 866 Bytes
/
bootstrap.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
;;; bootstrap.el --- Install the Straight package manager
;;; Commentary:
;; N/A
;;; Code:
(defvar bootstrap-version)
(let ((install-url "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el")
(bootstrap-file (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer (url-retrieve-synchronously install-url 'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
;; Install the use-package convenience macro
(straight-use-package 'use-package)
(setq straight-use-package-by-default t)
(when (not (file-exists-p (expand-file-name "straight/versions/default.el" straight-base-dir)))
(straight-freeze-versions))
;;; bootstrap.el ends here