Disable TLS checks for elpher.

This commit is contained in:
Niten 2021-05-18 13:36:04 -07:00
parent 42f747cdf2
commit e58543449f
1 changed files with 15 additions and 1 deletions

View File

@ -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: