Merge pull request #46 from jamescherti/develop

Develop
This commit is contained in:
James Cherti
2025-03-12 18:31:18 -04:00
committed by GitHub
3 changed files with 14 additions and 7 deletions

View File

@@ -1072,14 +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
(push '("melpa-stable" . "https://stable.melpa.org/packages/") package-archives)
;; 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:

View File

@@ -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")

View File

@@ -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