summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-01-10 23:52:31 -0600
committerCase Duckworth2022-01-10 23:52:31 -0600
commite91bb5a1bef2770169987c88c730c735c10e0eb4 (patch)
treeb4eac7d727d446a08a96a78ad65ae0a102e83f05
parentHook reading-mode into view-mode (diff)
downloademacs-e91bb5a1bef2770169987c88c730c735c10e0eb4.tar.gz
emacs-e91bb5a1bef2770169987c88c730c735c10e0eb4.zip
Add music to browse-url-with-mpv
-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