summaryrefslogtreecommitdiffhomepage
path: root/completion.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-01-22 00:10:17 +0000
committerjao <jao@gnu.org>2022-01-22 00:10:17 +0000
commite4e46f41b0d01b9efab86b2f3cebbf116c3216b5 (patch)
tree68b55bc840cef27c87ff44ccc6e798ef9020838e /completion.org
parentec873bca5cfebe194b56ac03e4b760cf63f2156c (diff)
downloadelibs-e4e46f41b0d01b9efab86b2f3cebbf116c3216b5.tar.gz
elibs-e4e46f41b0d01b9efab86b2f3cebbf116c3216b5.tar.bz2
spt/mpris switching
Diffstat (limited to 'completion.org')
-rw-r--r--completion.org5
1 files changed, 5 insertions, 0 deletions
diff --git a/completion.org b/completion.org
index af9bca4..9c8362b 100644
--- a/completion.org
+++ b/completion.org
@@ -483,8 +483,13 @@
*** spotify
#+begin_src emacs-lisp
(with-eval-after-load "consult-spotify"
+ (defun jao-consult-spt-play (candidate)
+ (when-let (url (espotify-candidate-url candidate))
+ (jao-spt-play-uri url)))
+
(embark-define-keymap spotify-item-keymap
"Actions for Spotify search results"
+ ("s" jao-consult-spt-play)
("y" espotify-yank-candidate-url)
("a" espotify-play-candidate-album)
("h" espotify-show-candidate-info))