From f0f8b1135cac25af3790e550377030a852ec596b Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 27 Nov 2019 13:19:55 -0500 Subject: [PATCH] Use counsel-spotify --- emacs/init.org | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/emacs/init.org b/emacs/init.org index d666f81..84722f7 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -3832,3 +3832,28 @@ A fancy calendar view: ('normal hackernews-mode-map "SPC" leader-map)) (leader-def-key "ah" 'hackernews) #+END_SRC +* counsel-spotify +Spotify in Emacs! +#+BEGIN_SRC emacs-lisp + (use-package counsel-spotify + :commands (counsel-spotify-search-track + counsel-spotify-search-album + counsel-spotify-search-artist + counsel-spotify-seach-tracks-by-album + counsel-spotify-search-tracks-by-artist + counsel-spotify-play + counsel-spotify-toggle-play-pause + counsel-spotify-next + counsel-spotify-previous) + :config + (setq counsel-spotify-client-id "825add4224704126adf3912b847c86df" + counsel-spotify-client-secret "f71fb236c06b4af886658667056ef7bd")) + + (jdormit/define-prefix "iS" "counsel-spotify") + (leader-def-key "iSt" #'counsel-spotify-search-track) + (leader-def-key "iSa" #'counsel-spotify-search-album) + (leader-def-key "iSA" #'counsel-spotify-search-artist) + (leader-def-key "iS SPC" #'counsel-spotify-toggle-play-pause) + (leader-def-key "iSn" #'counsel-spotify-next) + (leader-def-key "iSp" #'counsel-spotify-previous) +#+END_SRC