* doc/org/init.el.in: Work around obsolete ELPA signatures.
This commit is contained in:
parent
cfd888076c
commit
2f2351a50f
1 changed files with 9 additions and 7 deletions
|
|
@ -3,6 +3,15 @@
|
|||
|
||||
(setq debug-on-error t)
|
||||
|
||||
;;; Some combination of GNU TLS and Emacs fail to retrieve archive
|
||||
;;; contents over https.
|
||||
;;; https://www.reddit.com/r/emacs/comments/cdf48c/failed_to_download_gnu_archive/
|
||||
;;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34341
|
||||
(if (and (version< emacs-version "26.3") (>= libgnutls-version 30600))
|
||||
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3"))
|
||||
; work around obsolete ELPA signatures :-(
|
||||
(setq package-check-signature 'nil)
|
||||
|
||||
(package-initialize)
|
||||
(require 'cl)
|
||||
(setq features-before features)
|
||||
|
|
@ -11,13 +20,6 @@
|
|||
(print (org-version nil t t))
|
||||
(print (concat "Org " org-version))
|
||||
|
||||
; Some combination of GNU TLS and Emacs fail to retrieve archive
|
||||
; contents over https.
|
||||
; https://www.reddit.com/r/emacs/comments/cdf48c/failed_to_download_gnu_archive/
|
||||
; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34341
|
||||
(if (and (version< emacs-version "26.3") (>= libgnutls-version 30600))
|
||||
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3"))
|
||||
|
||||
; The Org version that ships with emacs is usually too old.
|
||||
(when (version< org-version "9.1")
|
||||
(warn "Org-mode is too old; attempting to download a more recent version")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue