Documentation and keybindigs

This commit is contained in:
WarFox (Deepu Mohan Puthrote) 2018-09-06 02:09:49 +03:00 committed by Codruț Constantin Gușoi
parent 74bee3e6db
commit 534785ad3d
2 changed files with 26 additions and 27 deletions

View file

@ -33,3 +33,11 @@ If [[https://github.com/emacs-helm/helm][Helm]] layer is enabled, you can also u
| Key Binding | Description |
|---------------+------------------------|
| ~SPC a m s g~ | Search for a new track |
If [[https://github.com/abo-abo/swiper][Ivy]] layer is enabled, you can also use the following binding(s):
| Key Binding | Description |
| ~SPC a m s s a~ | Spotify search artist |
| ~SPC a m s s A~ | Spotify search album |
| ~SPC a m s s t~ | Search for a new track |
| ~SPC a m s s T a~ | Spotify search track by artist |
| ~SPC a m s s T A~ | Spotify search track by album |

View file

@ -10,24 +10,21 @@
;;; License: GPLv3
(setq spotify-packages
'(
(spotify :toggle (configuration-layer/package-usedp 'helm))
'(spotify
(helm-spotify-plus :toggle (configuration-layer/package-usedp 'helm))
(counsel-spotify :toggle (configuration-layer/package-usedp 'ivy))
))
(counsel-spotify :toggle (configuration-layer/package-usedp 'ivy))))
(defun spotify/init-spotify ()
(use-package spotify
:defer t
:init
(progn
(spacemacs/declare-prefix "am" "music")
(spacemacs/declare-prefix "ams" "Spotify")
(spacemacs/set-leader-keys
"amsp" 'spotify-playpause
"amsn" 'spotify-next
"amsN" 'spotify-previous
"amsQ" 'spotify-quit))))
:init (progn
(spacemacs/declare-prefix "am" "music")
(spacemacs/declare-prefix "ams" "Spotify")
(spacemacs/set-leader-keys
"amsp" 'spotify-playpause
"amsn" 'spotify-next
"amsN" 'spotify-previous
"amsQ" 'spotify-quit))))
(defun spotify/init-helm-spotify-plus ()
(use-package helm-spotify-plus
@ -37,19 +34,13 @@
(defun spotify/init-counsel-spotify ()
(use-package counsel-spotify
:defer t
:init
(progn
(spacemacs/declare-prefix "am" "music")
(spacemacs/declare-prefix "ams" "Spotify")
(spacemacs/set-leader-keys
"amsp" 'counsel-spotify-toggle-play-pause
"amsn" 'counsel-spotify-next
"amsN" 'counsel-spotify-previous
"amsst" 'counsel-spotify-search-track
"amssa" 'counsel-spotify-search-artist
"amssA" 'counsel-spotify-search-album
))))
:init (progn
(spacemacs/set-leader-keys
"amssa" 'counsel-spotify-search-artist
"amssA" 'counsel-spotify-search-album
"amsst" 'counsel-spotify-search-track
"amssTa" 'counsel-spotify-search-tracks-by-artist
"amssTA" 'counsel-spotify-search-tracks-by-album))))
(defun spotify/post-init-counsel-spotify ()
(load-library "counsel-spotify")
)
(load-library "counsel-spotify"))