[emacs] change the way package archives work

I don't think I need the https workaround anymore, but also I don't
run windows anymore, so.
This commit is contained in:
John Doty 2026-03-11 12:36:43 +00:00
parent 1befed740d
commit 7df30b6e67
2 changed files with 10 additions and 11 deletions

View file

@ -71,17 +71,9 @@
;; =================================================================
;; Packages
;; =================================================================
;; See http://dotyl.ink/l/qbmhz43kju
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
(not (gnutls-available-p))))
(proto (if no-ssl "http" "https")))
(setq package-archives
'(("gnu" . "https://elpa.gnu.org/packages/")
("org" . "https://orgmode.org/elpa/")
))
(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/"))
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)
)
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))