diff options
author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-04-15 01:26:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-15 01:26:18 -0400 |
commit | bbd8816dc1187b4e16d46b2683c5d1bb2cab0693 (patch) | |
tree | 7e658da03dff01810312fae0862951d72ec9f282 /init.el | |
parent | Merge `update-documentation` branch to `stable` branch (diff) | |
parent | Minor formatting fix (diff) | |
download | mmosmacs-bbd8816dc1187b4e16d46b2683c5d1bb2cab0693.tar.gz mmosmacs-bbd8816dc1187b4e16d46b2683c5d1bb2cab0693.tar.bz2 mmosmacs-bbd8816dc1187b4e16d46b2683c5d1bb2cab0693.zip |
Merge `rfc/5/package-manager-straight` branch to `stable` branch
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 43 |
1 files changed, 43 insertions, 0 deletions
@@ -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. |