emacs-personal/modules/init-elpa.el
Jesús baebade667
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.
2019-02-01 14:43:16 -05:00

42 lines
1.2 KiB
EmacsLisp

;;; init-elpa.el --- .Emacs Configuration -*- lexical-binding: t -*-
;;; Commentary:
;;
;;; Code:
;;; Find and load the correct package.el
;; =====================================================
;; use-package → https://github.com/jwiegley/use-package
;; =====================================================
(require 'package)
;; Repositories
;; ================
(setq package-archives
'(("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)))
;; =================
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(require 'use-package)
(setq use-package-always-ensure t)
;; =====================================================
;; End use-package
;; =====================================================
(provide 'init-elpa)
;; End:
;;; init-elpa.el ends here