aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/early-init.el
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2020-04-27 23:06:29 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2020-04-27 23:06:29 +0200
commit9ca450903335229ebb509378818689e91119fd25 (patch)
tree0faeab3ddb207e56812f1b784fe85b8547ba1f45 /.emacs.d/early-init.el
parent1f77e777edf0fc08ebccc2285d34c712aa0e1a0f (diff)
downloaddotfiles-9ca450903335229ebb509378818689e91119fd25.tar.gz
dotfiles-9ca450903335229ebb509378818689e91119fd25.zip
emacs: set priorities for package archives
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '.emacs.d/early-init.el')
-rw-r--r--.emacs.d/early-init.el16
1 files changed, 10 insertions, 6 deletions
diff --git a/.emacs.d/early-init.el b/.emacs.d/early-init.el
index 5c71a0e..2f62e61 100644
--- a/.emacs.d/early-init.el
+++ b/.emacs.d/early-init.el
@@ -50,11 +50,15 @@
;; Package initialization.
(require 'package)
-(setq package-archives '())
-(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
-(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
-(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/") t)
-(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t)
-
+(setq package-archives
+ '(("gnu" . "https://elpa.gnu.org/packages/")
+ ("MELPA Stable" . "https://stable.melpa.org/packages/")
+ ("MELPA" . "https://melpa.org/packages/")
+ ("org" . "https://orgmode.org/elpa/"))
+ package-archive-priorities
+ '(("MELPA Stable" . 15)
+ ("org" . 10)
+ ("gnu" . 5)
+ ("MELPA" . 0)))
;;; early-init.el ends here