package: add to package-archives in config step

This commit is contained in:
Evie Litherland-Smith 2024-04-17 12:12:59 +01:00
parent cb53b7b40e
commit 4e93a40717

View file

@ -7,9 +7,6 @@
;; Configure packages archives with priority ;; Configure packages archives with priority
(use-package package (use-package package
:init
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives '("stable" . "https://stable.melpa.org/packages/"))
:custom :custom
(package-archive-priorities '(("melpa" . 10) ("stable" . 5) ("nongnu" . 5) ("gnu" . 0))) (package-archive-priorities '(("melpa" . 10) ("stable" . 5) ("nongnu" . 5) ("gnu" . 0)))
(package-selected-packages (package-selected-packages
@ -46,6 +43,8 @@
elfeed elfeed-org elfeed-tube elfeed-tube-mpv elfeed elfeed-org elfeed-tube elfeed-tube-mpv
)) ))
:config :config
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives '("stable" . "https://stable.melpa.org/packages/"))
(package-initialize)) (package-initialize))
(setq custom-file (locate-user-emacs-file "custom.el")) (setq custom-file (locate-user-emacs-file "custom.el"))