Disable TLS checks for elpher.
This commit is contained in:
parent
42f747cdf2
commit
e58543449f
16
packages.el
16
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:
|
||||
|
|
Loading…
Reference in New Issue