From c93455b7888b0cd9cfec962d0c1120ce5614f489 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Sat, 15 Apr 2023 00:16:06 -0400 Subject: Disable `package.el` in Early Init --- early-init.el | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 @@ ;; --------------------------------- (set-face-attribute 'default nil :background "#000000" :foreground "#FFFFFF") + + + + +;; --------------------------------------------------------------------- +;;; Package Management +;; ------------------- +;; Only one thing should be here. I only wrote this description so the +;; formatting would be consistent. It's a useless comment. Something +;; something package management. +;; --------------------------------------------------------------------- + +;; --------------------------------- +;; Disable package manager +;; ----------------------- +;; Disable the built-in package +;; manager (`package.el'), because +;; MMOSMacs will be using +;; `straight.el' +;; --------------------------------- +(setq package-enable-at-startup nil) -- cgit v1.2.3 From c6ed376b1a55ffdd0b43d77639b4e062a023cd09 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Sat, 15 Apr 2023 00:59:45 -0400 Subject: Bootstrap `straight.el` Some magic bootstrapping code is provided by `straight.el` which is necessary to get it installed in the first place. --- init.el | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/init.el b/init.el index ba7a20e..b344c83 100644 --- a/init.el +++ b/init.el @@ -4,6 +4,34 @@ ;; Main configuration file for MMOSMacs. +;; --------------------------------------------------------------------- +;;; Package Management +;; ----------------------------------- +;; MMOSMacs uses `straight.el' for package management. +;; --------------------------------------------------------------------- + +;; --------------------------------- +;; Bootstrap `straight.el' +;; ----------------------- +;; This is some pre-written magic +;; provided by `straight.el'. Dont +;; ask me what it does. +;; --------------------------------- +(defvar bootstrap-version) +(let ((bootstrap-file + (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) + (bootstrap-version 6)) + (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)) + + + ;; --------------------------------------------------------------------- ;;; File Management ;; ---------------- -- cgit v1.2.3 From d14172b51c73fd9695a0d1c249873bd095c5fdd9 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Sat, 15 Apr 2023 01:07:17 -0400 Subject: Add `straight/` to `.gitignore` --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 409fb38..3ea5573 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ eln-cache/ +straight/ -- cgit v1.2.3 From cfa7e7c0b2e0537657f7b56cdd48eeee0c51a2a1 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Sat, 15 Apr 2023 01:13:23 -0400 Subject: Don't load outdated code If a `.el` file is newer than its corresponding `.elc`, load the `.el`. --- init.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/init.el b/init.el index b344c83..9ab7611 100644 --- a/init.el +++ b/init.el @@ -31,6 +31,20 @@ (load bootstrap-file nil 'nomessage)) +;; --------------------------------- +;; Don't load outdated code +;; ------------------------ +;; MMOSMacs is under highly active +;; development and undergoes +;; freuqent changes. The newest code +;; should always be loaded +;; --------------------------------- + +;; if a `.el' file is newer than its corresponding `.elc', load the `.el' +(setq load-prefer-newer t) + + + ;; --------------------------------------------------------------------- ;;; File Management -- cgit v1.2.3 From a57bf344902094097a48f75f452fcfbb7dc0368f Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Sat, 15 Apr 2023 01:14:42 -0400 Subject: Minor formatting fix --- init.el | 1 + 1 file changed, 1 insertion(+) diff --git a/init.el b/init.el index 9ab7611..c1e590b 100644 --- a/init.el +++ b/init.el @@ -17,6 +17,7 @@ ;; provided by `straight.el'. Dont ;; ask me what it does. ;; --------------------------------- + (defvar bootstrap-version) (let ((bootstrap-file (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) -- cgit v1.2.3