summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/init.el b/init.el index 9722a64..c4f71b0 100644 --- a/init.el +++ b/init.el
@@ -179,9 +179,12 @@
179 (cond ((executable-find "mpv") #'+browse-image-with-mpv) 179 (cond ((executable-find "mpv") #'+browse-image-with-mpv)
180 (t #'eww-browse-url)) 180 (t #'eww-browse-url))
181 args))) 181 args)))
182 (cons (rx ; videos 182 (cons (rx
183 (or "youtube.com" "youtu.be" "yewtu.be" 183 (or "youtube.com" "youtu.be" "yewtu.be"
184 (seq "." (or "mp4" "gif" "mov" "MOV" "webm") eos))) 184 ;; videos
185 (seq "." (or "mp4" "gif" "mov" "MOV" "webm") eos)
186 ;; music
187 (seq "." (or "ogg" "mp3") eos)))
185 (lambda (&rest args) 188 (lambda (&rest args)
186 (apply (if (executable-find "mpv") 189 (apply (if (executable-find "mpv")
187 #'+browse-url-with-mpv 190 #'+browse-url-with-mpv