From a88985711f4f838762732bde2b5b75381ca71ee2 Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 8 Feb 2021 21:29:59 +0000 Subject: more espotify control commands --- lib/media/espotify.org | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lib/media/espotify.org') diff --git a/lib/media/espotify.org b/lib/media/espotify.org index 93338a9..98530a8 100644 --- a/lib/media/espotify.org +++ b/lib/media/espotify.org @@ -271,6 +271,23 @@ Let's start with an umbrella customization group: (espotify-call-spotify-via-dbus "OpenUri" uri)) #+end_src + Although we're not going to use them explicitly below, we can define + a couple more commands that may come in handy: + + #+begin_src emacs-lisp + (defun espotify-play-pause () + (interactive) + (espotify-call-spotify-via-dbus "PlayPause")) + + (defun espotify-next () + (interactive) + (espotify-call-spotify-via-dbus "Next")) + + (defun espotify-previous () + (interactive) + (espotify-call-spotify-via-dbus "Previous")) + #+end_src + * Search front-end using consult :PROPERTIES: :header-args: :tangle espotify-consult.el -- cgit v1.2.3