From c9e11d7349731105f145224af06531d8fd5072cb Mon Sep 17 00:00:00 2001 From: jao Date: Tue, 16 Feb 2021 00:52:00 +0000 Subject: init: adapt to new espotify --- init.org | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/init.org b/init.org index 41f4c97..02197e0 100644 --- a/init.org +++ b/init.org @@ -4090,12 +4090,20 @@ (use-package espotify :demand t) (when (eq 'consult jao-completion-engine) - (require 'espotify-consult) - (use-package espotify-embark :demand t) - (defalias 'jao-spotify-album #'espotify-consult-album) - (defalias 'jao-spotify-track #'espotify-consult-track) - (defalias 'jao-spotify-artist #'espotify-consult-artist) - (defalias 'jao-spotify-playlist #'espotify-consult-playlist)) + (use-package consult-spotify :demand t) + (defalias 'jao-spotify-album #'consult-spotify-album) + (defalias 'jao-spotify-track #'consult-spotify-track) + (defalias 'jao-spotify-artist #'consult-spotify-artist) + (defalias 'jao-spotify-playlist #'consult-spotify-playlist) + + (embark-define-keymap spotify-item-keymap + "Actions for Spotify search results" + ("y" espotify-yank-candidate-url) + ("a" espotify-play-candidate-album) + ("h" espotify-show-candidate-info)) + + (add-to-list 'embark-keymap-alist + '(spotify-search-item . spotify-item-keymap))) (when (eq 'counsel jao-completion-engine) (require 'espotify-counsel) -- cgit v1.2.3