From e4e46f41b0d01b9efab86b2f3cebbf116c3216b5 Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 22 Jan 2022 00:10:17 +0000 Subject: spt/mpris switching --- completion.org | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'completion.org') 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)) -- cgit v1.2.3