From baebade667fdde9e5c6a2a2512214676775653d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Fri, 1 Feb 2019 14:43:16 -0500 Subject: [PATCH] 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. --- modules/init-elpa.el | 18 +++++++++--------- 1 file 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)