aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-04-15 00:59:45 -0400
committerMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-04-15 00:59:45 -0400
commitc6ed376b1a55ffdd0b43d77639b4e062a023cd09 (patch)
tree4bea63f721e6f538146cd621fac75d0bd26377e2
parentDisable `package.el` in Early Init (diff)
downloadmmosmacs-c6ed376b1a55ffdd0b43d77639b4e062a023cd09.tar.gz
mmosmacs-c6ed376b1a55ffdd0b43d77639b4e062a023cd09.tar.bz2
mmosmacs-c6ed376b1a55ffdd0b43d77639b4e062a023cd09.zip
Bootstrap `straight.el`
Some magic bootstrapping code is provided by `straight.el` which is necessary to get it installed in the first place.
-rw-r--r--init.el28
1 files changed, 28 insertions, 0 deletions
diff --git a/init.el b/init.el
index ba7a20e..b344c83 100644
--- a/init.el
+++ b/init.el
@@ -5,6 +5,34 @@
5 5
6 6
7;; --------------------------------------------------------------------- 7;; ---------------------------------------------------------------------
8;;; Package Management
9;; -----------------------------------
10;; MMOSMacs uses `straight.el' for package management.
11;; ---------------------------------------------------------------------
12
13;; ---------------------------------
14;; Bootstrap `straight.el'
15;; -----------------------
16;; This is some pre-written magic
17;; provided by `straight.el'. Dont
18;; ask me what it does.
19;; ---------------------------------
20(defvar bootstrap-version)
21(let ((bootstrap-file
22 (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
23 (bootstrap-version 6))
24 (unless (file-exists-p bootstrap-file)
25 (with-current-buffer
26 (url-retrieve-synchronously
27 "https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
28 'silent 'inhibit-cookies)
29 (goto-char (point-max))
30 (eval-print-last-sexp)))
31 (load bootstrap-file nil 'nomessage))
32
33
34
35;; ---------------------------------------------------------------------
8;;; File Management 36;;; File Management
9;; ---------------- 37;; ----------------
10;; Everything to do with file or directory management goes here. 38;; Everything to do with file or directory management goes here.