14
README.md
14
README.md
@@ -1072,14 +1072,20 @@ Add the following to your `~/.emacs.d/pre-early-init.el` file:
|
|||||||
|
|
||||||
### How to use MELPA stable?
|
### 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
|
```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?
|
### How to load a local lisp file for machine-specific configurations?
|
||||||
|
|
||||||
Add the following line to the end of your `post-init.el` file:
|
Add the following line to the end of your `post-init.el` file:
|
||||||
|
|||||||
@@ -382,11 +382,12 @@ this stage of initialization."
|
|||||||
(setq use-package-enable-imenu-support t)
|
(setq use-package-enable-imenu-support t)
|
||||||
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
||||||
("gnu" . "https://elpa.gnu.org/packages/")
|
("gnu" . "https://elpa.gnu.org/packages/")
|
||||||
|
("melpa-stable" . "https://stable.melpa.org/packages/")
|
||||||
("nongnu" . "https://elpa.nongnu.org/nongnu/")))
|
("nongnu" . "https://elpa.nongnu.org/nongnu/")))
|
||||||
(customize-set-variable 'package-archive-priorities '(("gnu" . 99)
|
(customize-set-variable 'package-archive-priorities '(("gnu" . 99)
|
||||||
("nongnu" . 80)
|
("nongnu" . 80)
|
||||||
("melpa-stable" . 70)
|
("melpa" . 70)
|
||||||
("melpa" . 0)))
|
("melpa-stable" . 0)))
|
||||||
|
|
||||||
;;; Load post-early-init.el
|
;;; Load post-early-init.el
|
||||||
(minimal-emacs-load-user-init "post-early-init")
|
(minimal-emacs-load-user-init "post-early-init")
|
||||||
|
|||||||
2
init.el
2
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
|
;; Author: James Cherti
|
||||||
;; URL: https://github.com/jamescherti/minimal-emacs.d
|
;; URL: https://github.com/jamescherti/minimal-emacs.d
|
||||||
|
|||||||
Reference in New Issue
Block a user