From d547a87d8c2e0259b1795a4b1b099beae5fed9ca Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Wed, 12 Mar 2025 17:49:13 -0400 Subject: [PATCH 1/2] Remove no-byte-compile and change package settings --- README.md | 5 ++++- early-init.el | 5 +++-- init.el | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 80a40c0..ecb5ef1 100644 --- a/README.md +++ b/README.md @@ -1075,7 +1075,10 @@ Add the following to your `~/.emacs.d/pre-early-init.el` file: To add MELPA Stable for accessing stable package versions, you can adjust the `package-archive-priorities` variable in your `~/.emacs.d/post-early-init.el` file. ```elisp -(push '("melpa-stable" . "https://stable.melpa.org/packages/") package-archives) +(customize-set-variable 'package-archive-priorities '(("gnu" . 99) + ("nongnu" . 80) + ("melpa-stable" . 70) + ("melpa" . 0))) ``` However, the packages can sometimes be outdated. diff --git a/early-init.el b/early-init.el index 17ab580..4670a33 100644 --- a/early-init.el +++ b/early-init.el @@ -382,11 +382,12 @@ this stage of initialization." (setq use-package-enable-imenu-support t) (setq package-archives '(("melpa" . "https://melpa.org/packages/") ("gnu" . "https://elpa.gnu.org/packages/") + ("melpa-stable" . "https://stable.melpa.org/packages/") ("nongnu" . "https://elpa.nongnu.org/nongnu/"))) (customize-set-variable 'package-archive-priorities '(("gnu" . 99) ("nongnu" . 80) - ("melpa-stable" . 70) - ("melpa" . 0))) + ("melpa" . 70) + ("melpa-stable" . 0))) ;;; Load post-early-init.el (minimal-emacs-load-user-init "post-early-init") diff --git a/init.el b/init.el index ff95ffb..ed69c3b 100644 --- a/init.el +++ b/init.el @@ -1,4 +1,4 @@ -;;; init.el --- Init -*- no-byte-compile: t; lexical-binding: t; -*- +;;; init.el --- Init -*- lexical-binding: t; -*- ;; Author: James Cherti ;; URL: https://github.com/jamescherti/minimal-emacs.d From f691a406e4cb01dcfd34d58477ca5a072193d234 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Wed, 12 Mar 2025 17:54:39 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ecb5ef1..7bf3ed3 100644 --- a/README.md +++ b/README.md @@ -1072,17 +1072,20 @@ Add the following to your `~/.emacs.d/pre-early-init.el` file: ### How to use MELPA stable? -To add MELPA Stable for accessing stable package versions, you can adjust the `package-archive-priorities` variable in your `~/.emacs.d/post-early-init.el` file. +**IMPORTANT: Many of the MELPA stable packages are outdated.** + +Add the following configuration to `~/.emacs.d/post-early-init.el` to give MELPA Stable a higher priority than MELPA, ensuring that packages are fetched from MELPA Stable first: ```elisp +;; This change increases MELPA Stable priority to 70, above MELPA, +;; ensuring that MELPA is preferred for package installations +;; over MELPA Stable. (customize-set-variable 'package-archive-priorities '(("gnu" . 99) ("nongnu" . 80) ("melpa-stable" . 70) ("melpa" . 0))) ``` -However, the packages can sometimes be outdated. - ### How to load a local lisp file for machine-specific configurations? Add the following line to the end of your `post-init.el` file: