about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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