A simple somafm interface in emacs
Note: This is not an official SomaFM project
I built this for fun because of my love for SomaFM.
- Ensure you have
mpv
installed.- On macOS:
brew install mpv
- On macOS:
-
(use-package somafm :ensure t)
- Clone the repository
- Ensure the load-path is properly set based on the directory you cloned to.
If it was cloned to
~/.emacs.d
, this should work.(use-package somafm :load-path "somafm.el")
- Clone the repository and make sure it's in your load path.
(add-to-list 'load-path "~/.emacs.d/somafm.el")
- Require the package
(require 'somafm)
- Done!
-
Launch the soma.fm channel browser via
M-x somafm
-
Use
n
andp
to navigate -
Press
<return>
to start streaming the highlighted channel -
Press
s
to stop streaming playback -
Press
l
to sort by number of listeners -
Press
g
to refresh the channels list -
The current song will be shown next to the current channel
- Or you can use
M-x somafm-current-song
to display the current song in the echo area.
- Or you can use
-
You can add the current song to your favorites file (see
somafm-favorites-file
) by callingsomafm-add-current-song-to-favorites
, and delete it by callingsomafm-delete-current-song-from-favorites
.
- You can set the
somafm-sound-quality
custom to 'highest, 'high, or 'low to set the streaming quality.
This project uses buttercup for tests. To run them:
-
Install Cask.
-
Run the
cask
command in the project's root directory to install dependencies. -
Execute tests:
cask exec buttercup -L .