aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAstounds <kirito@disroot.org>2026-08-07 15:19:06 -0500
committerAstounds <kirito@disroot.org>2026-08-07 15:19:06 -0500
commite90e5cfbc6ca58c26a91a6b449b017b1102069be (patch)
treef45d35fd33f8affc6da3b4f46586a338bf9b8b69
parentff938e4c81f9778dcfa33597086e7726370cc384 (diff)
downloademacs-personal-e90e5cfbc6ca58c26a91a6b449b017b1102069be.tar.lz
emacs-personal-e90e5cfbc6ca58c26a91a6b449b017b1102069be.tar.xz
emacs-personal-e90e5cfbc6ca58c26a91a6b449b017b1102069be.zip
fix: emacs 27 TLS failure and package bootstrap
Extend GnuTLS TLS 1.3 workaround to Emacs < 28, fix use-package archive check in init-elpa.el,
-rw-r--r--init.el6
-rw-r--r--modules/init-elpa.el3
2 files changed, 4 insertions, 5 deletions
diff --git a/init.el b/init.el
index 68cbc96..6011957 100644
--- a/init.el
+++ b/init.el
@@ -10,9 +10,9 @@
;;; Time Mark
(setq emacs-load-start-time (current-time))
-;;; Fix TLS emacs 26.x
-(if (version<= emacs-version "26.2")
- (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3"))
+;;; Fix TLS for Emacs 26/27 (GnuTLS TLS 1.3 handshake bug on Debian/Ubuntu)
+(when (version< emacs-version "28")
+ (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3"))
;;; Welcome message
(setq-default initial-scratch-message
diff --git a/modules/init-elpa.el b/modules/init-elpa.el
index 16756fe..56a4e55 100644
--- a/modules/init-elpa.el
+++ b/modules/init-elpa.el
@@ -26,11 +26,10 @@
(setq package-native-compile t)
(setq package-check-signature 'allow-unsigned)
-(setq read-process-output-max (* 1024 1024))
(package-initialize)
(unless (package-installed-p 'use-package)
- (unless (assoc 'melpa package-archives)
+ (unless (assoc 'use-package package-archive-contents)
(package-refresh-contents))
(package-install 'use-package))