Documentation and keybindigs
This commit is contained in:
parent
74bee3e6db
commit
534785ad3d
|
@ -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 |
|
||||
|
|
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue