aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-04-15 01:26:18 -0400
committerGitHub <noreply@github.com>2023-04-15 01:26:18 -0400
commitbbd8816dc1187b4e16d46b2683c5d1bb2cab0693 (patch)
tree7e658da03dff01810312fae0862951d72ec9f282
parentMerge `update-documentation` branch to `stable` branch (diff)
parentMinor formatting fix (diff)
downloadmmosmacs-bbd8816dc1187b4e16d46b2683c5d1bb2cab0693.tar.gz
mmosmacs-bbd8816dc1187b4e16d46b2683c5d1bb2cab0693.tar.bz2
mmosmacs-bbd8816dc1187b4e16d46b2683c5d1bb2cab0693.zip
Merge `rfc/5/package-manager-straight` branch to `stable` branch
-rw-r--r--.gitignore1
-rw-r--r--early-init.el21
-rw-r--r--init.el43
3 files changed, 65 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 409fb38..3ea5573 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
1eln-cache/ 1eln-cache/
2straight/
diff --git a/early-init.el b/early-init.el
index 37222a4..f53a8bc 100644
--- a/early-init.el
+++ b/early-init.el
@@ -58,3 +58,24 @@
58;; --------------------------------- 58;; ---------------------------------
59 59
60(set-face-attribute 'default nil :background "#000000" :foreground "#FFFFFF") 60(set-face-attribute 'default nil :background "#000000" :foreground "#FFFFFF")
61
62
63
64
65;; ---------------------------------------------------------------------
66;;; Package Management
67;; -------------------
68;; Only one thing should be here. I only wrote this description so the
69;; formatting would be consistent. It's a useless comment. Something
70;; something package management.
71;; ---------------------------------------------------------------------
72
73;; ---------------------------------
74;; Disable package manager
75;; -----------------------
76;; Disable the built-in package
77;; manager (`package.el'), because
78;; MMOSMacs will be using
79;; `straight.el'
80;; ---------------------------------
81(setq package-enable-at-startup nil)
diff --git a/init.el b/init.el
index ba7a20e..c1e590b 100644
--- a/init.el
+++ b/init.el
@@ -5,6 +5,49 @@
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
21(defvar bootstrap-version)
22(let ((bootstrap-file
23 (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
24 (bootstrap-version 6))
25 (unless (file-exists-p bootstrap-file)
26 (with-current-buffer
27 (url-retrieve-synchronously
28 "https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
29 'silent 'inhibit-cookies)
30 (goto-char (point-max))
31 (eval-print-last-sexp)))
32 (load bootstrap-file nil 'nomessage))
33
34
35;; ---------------------------------
36;; Don't load outdated code
37;; ------------------------
38;; MMOSMacs is under highly active
39;; development and undergoes
40;; freuqent changes. The newest code
41;; should always be loaded
42;; ---------------------------------
43
44;; if a `.el' file is newer than its corresponding `.elc', load the `.el'
45(setq load-prefer-newer t)
46
47
48
49
50;; ---------------------------------------------------------------------
8;;; File Management 51;;; File Management
9;; ---------------- 52;; ----------------
10;; Everything to do with file or directory management goes here. 53;; Everything to do with file or directory management goes here.