[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:
parent
1befed740d
commit
7df30b6e67
2 changed files with 10 additions and 11 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue