From 9b23058122deba66c7bfd950c6da9df76519f934 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 26 Aug 2019 17:22:34 +0200 Subject: [PATCH] Emacs: Fix for elpa not working --- emacs/emacs.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emacs/emacs.el b/emacs/emacs.el index b127400..718ff33 100644 --- a/emacs/emacs.el +++ b/emacs/emacs.el @@ -14,6 +14,10 @@ (require 'package) (setq package-enable-on-startup nil) +;; Fix for elpa. See: +;; - https://old.reddit.com/r/emacs/comments/cdf48c/failed_to_download_gnu_archive/ +(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3") + (add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)