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.
This commit is contained in:
Jesús 2019-02-01 14:43:16 -05:00
parent 5597744a15
commit baebade667
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -12,16 +12,16 @@
;; Repositories ;; Repositories
;; ================ ;; ================
(setq package-archives (setq package-archives
'(("melpa" . "https://melpa.org/packages/") '(("GNU ELPA" . "https://elpa.gnu.org/packages/")
;;("melpa-stable" . "https://stable.melpa.org/packages/") ("MELPA Stable" . "https://stable.melpa.org/packages/")
("gnu" . "https://elpa.gnu.org/packages/") ("ORG" . "https://orgmode.org/elpa/")
("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) (package-initialize)