summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2020-11-02 21:41:06 -0600
committerCase Duckworth2020-11-02 21:41:06 -0600
commitf874abb5683a6208f40c624fdf704a6b13dd86d7 (patch)
tree40640a8fe5f0b330d5d4c1a0a137762828344b2e
parent??? (diff)
downloademacs-f874abb5683a6208f40c624fdf704a6b13dd86d7.tar.gz
emacs-f874abb5683a6208f40c624fdf704a6b13dd86d7.zip
Add advice for elpher:eww-browse-url
-rw-r--r--config.org8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.org b/config.org index 7982092..8d0b7b3 100644 --- a/config.org +++ b/config.org
@@ -678,6 +678,14 @@ I was using company, but I think it might've been causing issues with ~awk-mode~
678 (use-package elpher 678 (use-package elpher
679 :straight (elpher 679 :straight (elpher
680 :repo "git://thelambdalab.xyz/elpher.git") 680 :repo "git://thelambdalab.xyz/elpher.git")
681 :config
682 (defun elpher:eww-browse-url (original url &optional new-window)
683 "Handle gemini/gopher links with eww."
684 (cond ((string-match-p "\\`\\(gemini\\|gopher\\)://" url)
685 (require 'elpher)
686 (elpher-go url))
687 (t (funcall original url new-window))))
688 (advice-add 'eww-browse-url :around 'elpher:eww-browse-url)
681 :bind (:map elpher-mode-map 689 :bind (:map elpher-mode-map
682 ("n" . elpher-next-link) 690 ("n" . elpher-next-link)
683 ("p" . elpher-prev-link) 691 ("p" . elpher-prev-link)