Comment out buggy eww-browse-url advice

This commit is contained in:
Case Duckworth 2021-09-02 17:06:23 -05:00
parent fab6d24ace
commit 91be58ecb5
1 changed files with 8 additions and 6 deletions

14
init.el
View File

@ -1035,11 +1035,12 @@ like a dumbass."
(autoload 'elpher-go "elpher" nil t)
;; Make `eww' gemini/gopher aware. From Emacswiki.
(define-advice eww-browse-url (:around (fn url &rest args) gemini-elpher)
(cond ((string-match-p "\\`\\(gemini\\|gopher\\)://" url)
(require 'elpher)
(elpher-go url))
(t (apply fn url args)))))
;; (define-advice eww-browse-url (:around (fn url &rest args) gemini-elpher)
;; (cond ((string-match-p "\\`\\(gemini\\|gopher\\)://" url)
;; (require 'elpher)
;; (elpher-go url))
;; (t (apply fn url args))))
)
(setup (:straight (gemini-mode
:host nil
@ -1051,7 +1052,8 @@ like a dumbass."
:host nil
:repo "https://alexschroeder.ch/cgit/gemini-write"
:branch "main"))
(require 'gemini-write))
(with-eval-after-load 'elpher
(require 'gemini-write)))
(setup (:straight (mastodon
:host github