From a1beacff86f649a21d1efe32156b99b5be774de4 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 3 Dec 2020 01:01:40 -0600 Subject: Use 'develop' branch of straight.el --- config.org | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index bad2d5e..9ab69f8 100644 --- a/config.org +++ b/config.org @@ -194,7 +194,8 @@ So far, this is the best package manager I've used. It allows for /truly/ decla The one annoying thing is that this bootstrap code doesn't work on Windows for some reason. I'm too lazy to really try and figure out why, so when I need to bootstrap on Windows (pretty rare, TBH), I just [[https://github.com/raxod502/straight.el/archive/master.zip][download the master-branch zip file]] and extract it to =~/.emacs.d/straight/repos/=. -#+begin_src emacs-lisp :tangle early-init.el +#+NAME: straight-bootstrap +#+begin_src emacs-lisp :tangle no (defvar bootstrap-version) (let ((bootstrap-file (expand-file-name "straight/repos/straight.el/bootstrap.el" @@ -210,6 +211,16 @@ The one annoying thing is that this bootstrap code doesn't work on Windows for s (load bootstrap-file nil 'nomessage)) #+end_src +** ... but first: override the definition of straight.el to use the =develop= branch + +For the KeePassXC bits later, I need the =develop= branch of straight, so I can pass a =:build= keyword. I can do this, but I have to override the recipe for =straight.el= itself. I do that here. For more information, see [[https://github.com/raxod502/straight.el#overriding-recipes][the README]]. + +#+begin_src emacs-lisp :tangle early-init.el :noweb yes + (setq straight-repository-branch "develop") + + <> +#+end_src + ** Use [[https://jwiegley.github.io/use-package/][use-package]] Like I said, =straight.el= hooks into =use-package= easily. These two lines get the latter to use the former by default. -- cgit 1.4.1-21-gabe81