Skip to content

Commit

Permalink
embark: add action to add artist to playlist
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo-Heagren committed Dec 25, 2021
1 parent c34bb2e commit fd44afb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions consult-emms-embark.el
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ Selected track is added to the current playlist."
(let ((emms-playlist-buffer (consult-emms--choose-buffer)))
(consult-emms--add-artist artist-name)))

(embark-define-keymap consult-emms-embark-artist-actions
"Keymap for actions on artists in `consult-emms'."
("p" '("Add to playlist". consult-emms-embark--add-artist-playlist)))

(add-to-list 'embark-keymap-alist '(artist . consult-emms-embark-artist-actions))

(provide 'consult-emms-embark)

;;; consult-emms-embark.el ends here

0 comments on commit fd44afb

Please sign in to comment.