diff --git a/README.org b/README.org index 73842a7b..3b62b41d 100644 --- a/README.org +++ b/README.org @@ -4703,6 +4703,18 @@ Since Bongo seems kinda difficult I shall give EMMS another try. (emms-browser-remove-tracks t) (emms-browser-remove-tracks))) + (defun chris/emms-mpv-video-playlist () + "Create a playlist for mpv videos." + (interactive) + (emms-playlist-new "*emms-videos*")) + + (defun chris/emms-add-video (&optional video) + "adds the given video to the emms playlist" + (interactive) + (if video + (emms-add-url video) + (emms-add-url))) + :general (chris/leader-keys :states 'normal diff --git a/init.el b/init.el index c6e929f6..340e6edd 100644 --- a/init.el +++ b/init.el @@ -3476,6 +3476,18 @@ interfere with the default `bongo-playlist-buffer'." (emms-browser-remove-tracks t) (emms-browser-remove-tracks))) + (defun chris/emms-mpv-video-playlist () + "Create a playlist for mpv videos." + (interactive) + (emms-playlist-new "*emms-videos*")) + + (defun chris/emms-add-video (&optional video) + "adds the given video to the emms playlist" + (interactive) + (if video + (emms-add-url video) + (emms-add-url))) + :general (chris/leader-keys :states 'normal