don't use HTTPS when INSECURE variable is set

This commit is contained in:
Hinckley, Troy J 2018-04-14 17:46:51 -07:00
parent a616f00670
commit daa798acfd

View file

@ -96,9 +96,13 @@ missing) and shouldn't be deleted.")
package-user-dir (expand-file-name "elpa" doom-packages-dir)
package-enable-at-startup nil
package-archives
(if (getenv "INSECURE")
'(("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "http://melpa.org/packages/")
("org" . "http://orgmode.org/elpa/"))
'(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")
("org" . "https://orgmode.org/elpa/"))
("org" . "https://orgmode.org/elpa/")))
;; I omit Marmalade because its packages are manually submitted rather
;; than pulled, so packages are often out of date with upstream.