summaryrefslogtreecommitdiffhomepage
path: root/init.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-02-16 00:52:00 +0000
committerjao <jao@gnu.org>2021-02-16 00:52:00 +0000
commitc9e11d7349731105f145224af06531d8fd5072cb (patch)
tree8c031d2b3d27726b222186e2a18622c9a57f6fc9 /init.org
parent31b01e69e1f5f56d86c471b50aa707c563a37089 (diff)
downloadelibs-c9e11d7349731105f145224af06531d8fd5072cb.tar.gz
elibs-c9e11d7349731105f145224af06531d8fd5072cb.tar.bz2
init: adapt to new espotify
Diffstat (limited to 'init.org')
-rw-r--r--init.org20
1 files 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)