From e58543449f80ccb6f48e226bc962cf3d9db5a3be Mon Sep 17 00:00:00 2001 From: Niten Date: Tue, 18 May 2021 13:36:04 -0700 Subject: [PATCH] Disable TLS checks for elpher. --- packages.el | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/packages.el b/packages.el index 6b683bd..a574929 100644 --- a/packages.el +++ b/packages.el @@ -14,8 +14,22 @@ (package! edit-server) (package! ivy-prescient) (package! ace-jump-mode) -(package! elpher) (package! md4rd) +(package! noflet) + +(defun tls-nocheck-error-advice (orig-fun &rest args) + "Advise a function (with :around) not to check TLS errors. + +ORIG-FUN - Funtion name to be advised +ARGS - Arguments to function + +Usage: (advice-add 'my-function-for-advisement :around 'tls-nocheck-error-advice." + (let ((gnutls-verify-error nil)) + (apply orig-fun args))) + +(use-package! elpher + :config + (advice-add 'elpher-get-gemini-response :around 'tls-nocheck-error-advice)) ;; To install a package directly from a remote git repo, you must specify a ;; `:recipe'. You'll find documentation on what `:recipe' accepts here: