aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/init-elpa.el
diff options
context:
space:
mode:
authorJesus E <heckyel@riseup.net>2023-05-12 23:08:14 -0400
committerJesus E <heckyel@riseup.net>2023-05-12 23:08:14 -0400
commitdf9488c7459effbbd35e08ae110aa44e624a64e1 (patch)
tree967d4e4ded2dcb5fd229c6d6ef045c3793f227ba /lisp/init-elpa.el
parent4177899f78cdbf3d8d2270b1ff06dc36ff66e50e (diff)
downloademacs-base-df9488c7459effbbd35e08ae110aa44e624a64e1.tar.lz
emacs-base-df9488c7459effbbd35e08ae110aa44e624a64e1.tar.xz
emacs-base-df9488c7459effbbd35e08ae110aa44e624a64e1.zip
refactoring code
Diffstat (limited to 'lisp/init-elpa.el')
-rw-r--r--lisp/init-elpa.el23
1 files changed, 9 insertions, 14 deletions
diff --git a/lisp/init-elpa.el b/lisp/init-elpa.el
index 5ba04d2..7fa39aa 100644
--- a/lisp/init-elpa.el
+++ b/lisp/init-elpa.el
@@ -12,23 +12,18 @@
;; 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)))
;; =================
-;; Refresh packages in Emacs
-;; ==========================
-(when (not package-archive-contents)
- (package-refresh-contents))
-
;;; Find packages if not installed
;; ================================
;;; On-demand installation of packages