Skip to content

Commit

Permalink
spotify: enable lazy loading and move command prefix names
Browse files Browse the repository at this point in the history
  • Loading branch information
syl20bnr committed Apr 3, 2016
1 parent 7352d46 commit 0ca8eb3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
13 changes: 0 additions & 13 deletions layers/+web-services/spotify/config.el

This file was deleted.

19 changes: 12 additions & 7 deletions layers/+web-services/spotify/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@

(defun spotify/init-spotify ()
(use-package spotify
:config (spacemacs/set-leader-keys
"amsp" 'spotify-playpause
"amsn" 'spotify-next
"amsN" 'spotify-previous
"amsQ" 'spotify-quit)))
: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))))

(when (configuration-layer/layer-usedp 'spacemacs-helm)
(defun spotify/init-helm-spotify ()
(use-package helm-spotify
:config (spacemacs/set-leader-keys
"amsg" 'helm-spotify))))
:defer t
:init (spacemacs/set-leader-keys "amsg" 'helm-spotify))))

0 comments on commit 0ca8eb3

Please sign in to comment.