This mode requires Emacs 24, curl to stream tracks, mp3info to tag them, and a music player that is supported by EMMS. Music Player Daemon, MPlayer and VLC Media Player are known to work with soundklaus.el.
M-x package-install [RET] soundklaus [RET]
(use-package soundklaus :ensure t :commands (soundklaus-activities soundklaus-connect soundklaus-my-favorites soundklaus-my-playlists soundklaus-my-tracks soundklaus-playlists soundklaus-tracks))
(require 'emms-setup) (emms-standard) (emms-default-players)
You can search songs with
M-x soundklaus-tracks and playlists
M-x soundklaus-playlists. Your own tracks and playlists are
M-x soundklaus-my-tracks and
soundklaus-my-playlists. You can list your favorite tracks with
soundklaus-my-favorites. In the
*soundklaus* buffer you can move
to the next song with
n, and to the previous one with
RET plays the current song, and
the current song at point to the EMMS playlist. All other
available key bindings can be seen with
Some commands like
M-x soundklaus-activities or
soundklaus-my-tracks need access to your SoundCloud account. Your
web browser should open Emacs via
emacsclient for the OAuth2
On a Linux system you can configure this by running
soundklaus-desktop-entry-save. This will write the following
content to the
file in your home directory.
[Desktop Entry] Name=SoundKlaus Exec=emacsclient %u Icon=emacs-icon Type=Application Terminal=false MimeType=x-scheme-handler/soundklaus;
Next, make sure your Emacs runs as a server. You can do this by adding this to your Emacs configuration.
(unless (server-running-p) (add-hook 'after-init-hook 'server-start t)))
Now you can start the OAuth2 authentication dance with
soundklaus-connect. You should get redirected to SoundCloud and
allow soundklaus.el to access your account. After pressing the
Connect button on the SoundCloud page, the browser should open
Emacs and set the
soundklaus-access-token customization variable.
Copyright © 2014-2019 r0man
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.