summary refs log tree commit diff stats
path: root/init.el
diff options
context:
space:
mode:
authorCase Duckworth2021-09-02 17:06:23 -0500
committerCase Duckworth2021-09-02 17:06:23 -0500
commit91be58ecb5a69e58e4ae68e6edccc7d2795d140d (patch)
tree6b645ff3eec8b825f46401b93810783c2405ce56 /init.el
parentChange olivetti-mode to reading-mode (diff)
downloademacs-91be58ecb5a69e58e4ae68e6edccc7d2795d140d.tar.gz
emacs-91be58ecb5a69e58e4ae68e6edccc7d2795d140d.zip
Comment out buggy eww-browse-url advice
Diffstat (limited to 'init.el')
-rw-r--r--init.el14
1 files changed, 8 insertions, 6 deletions
diff --git a/init.el b/init.el index 6fa5b12..4acc477 100644 --- a/init.el +++ b/init.el
@@ -1035,11 +1035,12 @@ like a dumbass."
1035 (autoload 'elpher-go "elpher" nil t) 1035 (autoload 'elpher-go "elpher" nil t)
1036 1036
1037 ;; Make `eww' gemini/gopher aware. From Emacswiki. 1037 ;; Make `eww' gemini/gopher aware. From Emacswiki.
1038 (define-advice eww-browse-url (:around (fn url &rest args) gemini-elpher) 1038 ;; (define-advice eww-browse-url (:around (fn url &rest args) gemini-elpher)
1039 (cond ((string-match-p "\\`\\(gemini\\|gopher\\)://" url) 1039 ;; (cond ((string-match-p "\\`\\(gemini\\|gopher\\)://" url)
1040 (require 'elpher) 1040 ;; (require 'elpher)
1041 (elpher-go url)) 1041 ;; (elpher-go url))
1042 (t (apply fn url args))))) 1042 ;; (t (apply fn url args))))
1043 )
1043 1044
1044(setup (:straight (gemini-mode 1045(setup (:straight (gemini-mode
1045 :host nil 1046 :host nil
@@ -1051,7 +1052,8 @@ like a dumbass."
1051 :host nil 1052 :host nil
1052 :repo "https://alexschroeder.ch/cgit/gemini-write" 1053 :repo "https://alexschroeder.ch/cgit/gemini-write"
1053 :branch "main")) 1054 :branch "main"))
1054 (require 'gemini-write)) 1055 (with-eval-after-load 'elpher
1056 (require 'gemini-write)))
1055 1057
1056(setup (:straight (mastodon 1058(setup (:straight (mastodon
1057 :host github 1059 :host github