From 91be58ecb5a69e58e4ae68e6edccc7d2795d140d Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 2 Sep 2021 17:06:23 -0500 Subject: Comment out buggy eww-browse-url advice --- init.el | 14 ++++++++------ 1 file 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." (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 -- cgit 1.4.1-21-gabe81