summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-02-22 11:42:29 +0100
committerAlan Pearce2017-02-22 11:42:29 +0100
commit321bf7276b55ed9b26037514bda69b68fcd264e4 (patch)
tree7c8781d2a5c2615a508828dc1fb52635d4d50229 /tag-emacs
parent20a401b8d2b7ee5185e1a75530b273d2e98fe8af (diff)
downloadnixfiles-321bf7276b55ed9b26037514bda69b68fcd264e4.tar.lz
nixfiles-321bf7276b55ed9b26037514bda69b68fcd264e4.tar.zst
nixfiles-321bf7276b55ed9b26037514bda69b68fcd264e4.zip
Emacs: Use secure package archives
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.org9
1 files changed, 5 insertions, 4 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index ea48d277..0873f31b 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -37,10 +37,11 @@ the buffer to be empty.
 
 #+BEGIN_SRC emacs-lisp
 (eval-and-compile
-  (setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
-                           ("marmalade" . "http://marmalade-repo.org/packages/")
-                           ("melpa-stable" . "http://stable.melpa.org/packages/")
-                           ("melpa" . "http://melpa.org/packages/"))
+  (setq tls-checktrust t
+        gnutls-verify-error t
+        package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
+                           ("melpa-stable" . "https://stable.melpa.org/packages/")
+                           ("melpa" . "https://melpa.org/packages/"))
         package-user-dir (concat "~/.emacs.d/packages/" emacs-version "/elpa")
         package-pinned-packages '(("use-package" . melpa-stable)
                                   ("diminish" . melpa-stable)