2015-12-02 14:23:39 +00:00
|
|
|
#+TITLE: Spotify layer
|
2015-06-10 16:44:30 +00:00
|
|
|
|
2019-05-02 21:49:30 +00:00
|
|
|
#+TAGS: layer|music
|
|
|
|
|
2015-06-10 16:44:30 +00:00
|
|
|
[[file:img/spotify.png]]
|
|
|
|
|
2019-05-07 20:05:06 +00:00
|
|
|
* Table of Contents :TOC_5_gh:noexport:
|
2017-05-22 14:16:12 +00:00
|
|
|
- [[#description][Description]]
|
2018-02-01 16:20:53 +00:00
|
|
|
- [[#features][Features:]]
|
2017-05-22 14:16:12 +00:00
|
|
|
- [[#install][Install]]
|
2019-10-15 11:21:43 +00:00
|
|
|
- [[#spotify-web-api-authentication-when-using-search-with-ivy][Spotify Web API authentication when using search with Ivy]]
|
2017-05-22 14:16:12 +00:00
|
|
|
- [[#key-bindings][Key bindings]]
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
* Description
|
2018-02-01 16:20:53 +00:00
|
|
|
This layer integrates an online music service into Spacemacs.
|
|
|
|
|
|
|
|
** Features:
|
|
|
|
- Support for listening to music from within Emacs via [[https://www.spotify.com][Spotify]].
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
* Install
|
2016-01-06 05:21:55 +00:00
|
|
|
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
|
|
|
|
add =spotify= to the existing =dotspacemacs-configuration-layers= list in this
|
|
|
|
file.
|
2015-06-10 16:44:30 +00:00
|
|
|
|
2019-10-15 11:21:43 +00:00
|
|
|
* Spotify Web API authentication when using search with Ivy
|
|
|
|
You'll need to [[https://developer.spotify.com/my-applications][register an application]] in Spotify in order to obtain a client id
|
|
|
|
and a client secret. Then, you'll have to set the variables
|
|
|
|
=counsel-spotify-client-id= and =counsel-spotify-client-secret= variables with
|
|
|
|
your credentials to start using the search feature.
|
|
|
|
|
2015-06-10 16:44:30 +00:00
|
|
|
* Key bindings
|
|
|
|
|
2018-12-05 03:03:03 +00:00
|
|
|
| Key binding | Description |
|
2015-06-10 16:44:30 +00:00
|
|
|
|---------------+--------------------------|
|
|
|
|
| ~SPC a m s p~ | Play or pause Spotify |
|
|
|
|
| ~SPC a m s n~ | Go to the next track |
|
|
|
|
| ~SPC a m s N~ | Go to the previous track |
|
|
|
|
| ~SPC a m s Q~ | Quit Spotify |
|
2017-11-22 14:28:19 +00:00
|
|
|
|
|
|
|
If [[https://github.com/emacs-helm/helm][Helm]] layer is enabled, you can also use the following binding(s):
|
|
|
|
|
2018-12-05 03:03:03 +00:00
|
|
|
| Key binding | Description |
|
2017-11-22 14:28:19 +00:00
|
|
|
|---------------+------------------------|
|
|
|
|
| ~SPC a m s g~ | Search for a new track |
|
2018-09-05 23:09:49 +00:00
|
|
|
|
|
|
|
If [[https://github.com/abo-abo/swiper][Ivy]] layer is enabled, you can also use the following binding(s):
|
2018-09-06 21:42:09 +00:00
|
|
|
|
2018-12-05 03:03:03 +00:00
|
|
|
| Key binding | Description |
|
2018-09-05 23:09:49 +00:00
|
|
|
| ~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 |
|