summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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)