Skip to content

Commit

Permalink
Add straight.el to be able to use github repos as dependencies directly
Browse files Browse the repository at this point in the history
  • Loading branch information
themkat committed May 23, 2024
1 parent b522586 commit 46463c8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions init.org
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,25 @@ Before we begin, we have to do some basic setup. For the rest of the config, I w
#+END_SRC


Some packages are also not in a package manager, and I may want to install it directly from a repo. Straight is good for this type of scenario!
#+BEGIN_SRC emacs-lisp
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name
"straight/repos/straight.el/bootstrap.el"
(or (bound-and-true-p straight-base-dir)
user-emacs-directory)))
(bootstrap-version 7))
(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))
#+END_SRC

** Keep packages up-to-date
I'm a bit lazy when it comes to updating packages manually, so automating this is a welcome addition :)

Expand Down

0 comments on commit 46463c8

Please sign in to comment.