aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-02-01 14:43:16 -0500
committerJesús <heckyel@hyperbola.info>2019-02-01 14:43:16 -0500
commitbaebade667fdde9e5c6a2a2512214676775653d1 (patch)
treee8831f5e32bfa6b7df05993cc0f90166cd409dec
parent5597744a155a6a9eef432dc7de7ac0fb4c2c29aa (diff)
downloademacs-personal-baebade667fdde9e5c6a2a2512214676775653d1.tar.lz
emacs-personal-baebade667fdde9e5c6a2a2512214676775653d1.tar.xz
emacs-personal-baebade667fdde9e5c6a2a2512214676775653d1.zip
change package-archive-priorities melpa-stable firts
Use the option package-archive-priorities which was made for this very purpose. To prefer MELPA Stable over MELPA. The higher the number, the higher the priority of a package archive. For any package that exists in multiple archives Emacs' package manager picks the package from the archive with the highest priority, and ignores packages in other archives, even if the version number is higher. If the package exists in two archives of the same priority, the higher version number wins, and ultimately I think the order in package-archives.
-rw-r--r--modules/init-elpa.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/init-elpa.el b/modules/init-elpa.el
index 51f29c8..c43f3e2 100644
--- a/modules/init-elpa.el
+++ b/modules/init-elpa.el
@@ -12,16 +12,16 @@
;; Repositories
;; ================
(setq package-archives
- '(("melpa" . "https://melpa.org/packages/")
- ;;("melpa-stable" . "https://stable.melpa.org/packages/")
- ("gnu" . "https://elpa.gnu.org/packages/")
- ("org" . "https://orgmode.org/elpa/")))
+ '(("GNU ELPA" . "https://elpa.gnu.org/packages/")
+ ("MELPA Stable" . "https://stable.melpa.org/packages/")
+ ("ORG" . "https://orgmode.org/elpa/")
+ ("MELPA" . "https://melpa.org/packages/"))
+ package-archive-priorities
+ '(("MELPA Stable" . 10)
+ ("GNU ELPA" . 5)
+ ("ORG" . 3)
+ ("MELPA" . 0)))
-(setq package-archive-priorities
- '(("melpa" . 4)
- ("melpa-stable" . 0)
- ("gnu" . 1)
- ("org" . 3)))
;; =================
(package-initialize)