about summary refs log tree commit diff
path: root/emacs-elisp/config/straight.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs-elisp/config/straight.el')
-rw-r--r--emacs-elisp/config/straight.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/emacs-elisp/config/straight.el b/emacs-elisp/config/straight.el
new file mode 100644
index 0000000..06592a5
--- /dev/null
+++ b/emacs-elisp/config/straight.el
@@ -0,0 +1,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)