straight.el for other systems that arent using nix

This commit is contained in:
Sakooooo 2023-12-29 15:56:52 +04:00
parent 0f46b6a60a
commit 07122d139b
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -105,6 +105,32 @@ Should make startup faster, taken from doom-emacs
(require 'use-package) (require 'use-package)
(setq use-package-always-ensure t) (setq use-package-always-ensure t)
#+end_src #+end_src
* Straight.el
We only enable Straight.el for anything other than NixOS
Cause emacs overlay lol
#+begin_src emacs-lisp
;; TODO Test this one darwin someday
(when (eq system-type 'windows-nt)
(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))
(use-package straight
:custom
(straight-use-package-by-default t))
)
#+end_src
* SPEED SPEED SPEED SPEED * SPEED SPEED SPEED SPEED
** Avoid Garbage Collection at startup ** Avoid Garbage Collection at startup
#+begin_src emacs-lisp #+begin_src emacs-lisp