From 07122d139b0de1cc3be89b1f2579ce2295d0e5ad Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 29 Dec 2023 15:56:52 +0400 Subject: [PATCH] straight.el for other systems that arent using nix --- config/emacs/emacs.org | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/config/emacs/emacs.org b/config/emacs/emacs.org index fbf2e48b..21921cb8 100644 --- a/config/emacs/emacs.org +++ b/config/emacs/emacs.org @@ -105,6 +105,32 @@ Should make startup faster, taken from doom-emacs (require 'use-package) (setq use-package-always-ensure t) #+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 ** Avoid Garbage Collection at startup #+begin_src emacs-lisp