about summary refs log tree commit diff stats
path: root/init.el
diff options
context:
space:
mode:
authorCase Duckworth2021-07-22 21:14:34 -0500
committerCase Duckworth2021-07-22 21:14:34 -0500
commit6964c20b29b6040bd3dd4294f55f9b34c6879c92 (patch)
tree69355065d74f4d3e66cedada6d23e7501f91d5f6 /init.el
parentChange fonts on Windows (diff)
downloademacs-6964c20b29b6040bd3dd4294f55f9b34c6879c92.tar.gz
emacs-6964c20b29b6040bd3dd4294f55f9b34c6879c92.zip
Fix browse-url-browser-function setting
Diffstat (limited to 'init.el')
-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.