Created
February 5, 2019 10:58
-
-
Save bsless/19ca4a37eee828b1b62c84971181f506 to your computer and use it in GitHub Desktop.
Opening YouTube Links In MPV from Emacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun mpv-play-url (url &rest args) | |
"" | |
(interactive) | |
(start-process "mpv" nil "mpv" url)) | |
(setq browse-url-browser-function | |
(quote | |
(("youtu\\.?be" . mpv-play-url) | |
("." . eww-browse-url)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment