diff options
-rw-r--r-- | config.org | 8 |
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) |