summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@kelar.org>2025-02-10 15:15:25 -0500
committerAmin Bandali <bandali@kelar.org>2025-02-10 15:15:25 -0500
commit17ca22454d0875d28a746a999c1c21e0b995e7d9 (patch)
tree304bf37181ee3dd6bf4b39d9a0b20374298e73eb
parent605a1d736dfc98ba61061450a382fd84a8668e84 (diff)
downloadconfigs-17ca22454d0875d28a746a999c1c21e0b995e7d9.tar.gz
configs-17ca22454d0875d28a746a999c1c21e0b995e7d9.tar.xz
configs-17ca22454d0875d28a746a999c1c21e0b995e7d9.zip
Tweak the Emacs package management setupHEADmain
Diffstat (limited to '')
-rw-r--r--.emacs.d/init.el19
1 files changed, 9 insertions, 10 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 2c2e7cc..96669d2 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -105,19 +105,18 @@ plain variables. This means that `setopt' will execute any
;;; Package management
-;; List of the packages I use from GNU ELPA and NonGNU ELPA.
-(setq
- package-selected-packages
- '(debbugs delight eat elpher))
-
(require 'package)
(package-initialize)
-;; Add NonGNU ELPA on older Emacsen.
-(when (version< emacs-version "28")
- (add-to-list
- 'package-archives
- '("nongnu" . "https://elpa.nongnu.org/nongnu/")))
+(setopt
+ ;; Explicitly set `package-archives', in part to ensure https ones
+ ;; are used, and also to have NonGNU ELPA on older Emacsel as well.
+ package-archives
+ '(("gnu" . "https://elpa.gnu.org/packages/")
+ ("nongnu" . "https://elpa.nongnu.org/nongnu/"))
+ ;; List of the packages I use from GNU ELPA and NonGNU ELPA.
+ package-selected-packages
+ '(debbugs delight eat elpher))
(unless package-archive-contents
(package-refresh-contents))