From e91bb5a1bef2770169987c88c730c735c10e0eb4 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 10 Jan 2022 23:52:31 -0600 Subject: Add music to browse-url-with-mpv --- init.el | 7 +++++-- 1 file 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 @@ (cond ((executable-find "mpv") #'+browse-image-with-mpv) (t #'eww-browse-url)) args))) - (cons (rx ; videos + (cons (rx (or "youtube.com" "youtu.be" "yewtu.be" - (seq "." (or "mp4" "gif" "mov" "MOV" "webm") eos))) + ;; videos + (seq "." (or "mp4" "gif" "mov" "MOV" "webm") eos) + ;; music + (seq "." (or "ogg" "mp3") eos))) (lambda (&rest args) (apply (if (executable-find "mpv") #'+browse-url-with-mpv -- cgit 1.4.1-21-gabe81