diff options
author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-04-15 00:59:45 -0400 |
---|---|---|
committer | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-04-15 00:59:45 -0400 |
commit | c6ed376b1a55ffdd0b43d77639b4e062a023cd09 (patch) | |
tree | 4bea63f721e6f538146cd621fac75d0bd26377e2 /init.el | |
parent | Disable `package.el` in Early Init (diff) | |
download | mmosmacs-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.
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -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. |