From 69b63f3ac8dab6dd05d7a9db653d2af6732c8175 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 17 Sep 2022 13:04:38 -0700 Subject: feat(packages): configure straight for managing packages straight has a few nice properties: - reproducible package management - clone packages to make it easier to work on them when needed - can use packages that are not in melpa (e.g. other git repositories) Change-Id: I6a5203bd843e68a040467d63faca8d597150b190 --- emacs/init.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'emacs') diff --git a/emacs/init.el b/emacs/init.el index 727103c..22ffb24 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -88,6 +88,20 @@ Missing packages are installed automatically." ;; run package installation (my/install-packages) +;; configure straight to manage packages +(defvar bootstrap-version) +(let ((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 + "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el" + 'silent 'inhibit-cookies) + (goto-char (point-max)) + (eval-print-last-sexp))) + (load bootstrap-file nil 'nomessage)) + (add-to-list 'load-path (expand-file-name "custom/" user-emacs-directory)) (add-to-list 'load-path (expand-file-name "elisp/" user-emacs-directory)) -- cgit 1.4.1