about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/init.el b/init.el index e47901f..1cb4e5b 100644 --- a/init.el +++ b/init.el
@@ -126,10 +126,13 @@
126 (set-default (if (version<= emacs-version "28") 126 (set-default (if (version<= emacs-version "28")
127 'browse-url-browser-function 127 'browse-url-browser-function
128 'browse-url-handlers) 128 'browse-url-handlers)
129 `(,(when (executable-find "feh") 129 `(("\\.jpe?g\\'" . ,(if (executable-find "feh")
130 '("\\.jpe?g\\'" . browse-url-feh)) 130 'browse-url-feh
131 ,(when (executable-find "mpv") 131 'eww-browse-url))
132 '("youtube\\.com\\|youtu\\.be" . browse-url-mpv)) 132 ("youtube\\.com\\|youtu\\.be" . ,(if (executable-find "mpv")
133 'browse-url-mpv
134 'eww-browse-url))
135 ("google\\.com" . browse-url-default-browser)
133 ("." . eww-browse-url))) 136 ("." . eww-browse-url)))
134 137
135 ;; Buttonize gemini:// links. 138 ;; Buttonize gemini:// links.