This is the Manual for the Emacs Multimedia System
Starting out
Emms basics
Advanced Features
Modules and Extensions
Copying and license
Indices
--- The Detailed Node Listing ---
Here are some other nodes which are really inferiors of the ones already listed, mentioned here so you can get to them in one step:
Installation
The Core File
Track Information
Last.fm
Extending Emms
Emms is the Emacs Multi-Media System. It tries to be a clean and small application to play multimedia files from Emacs using external players. Many of its ideas are derived from MpthreePlayer, but it tries to be more general and more clean.
This manual tries to be the definitive source of information about Emms, an online version of the manual is available at: http://www.gnu.org/software/emms/manual/.
The basic functionality of Emms consists of three parts: The core, the sources, and the players.
The core resides in emms.el, and provides a simple playlist and the basic functionality to use all the other features of Emms. It provides the common user commands and interfaces for other parts. It thinks in tracks, where a track is the combination of a type and a name - e.g. the track type 'file has a name that is the file name. Other track types are possible.
To get to tracks, the core needs sources. The file emms-source-file.el provides simple sources to interact with the file system.
When Emms finally has the sources in the playlist, it needs a player to play them. emms-player-simple.el defines a few useful players, and allows you to define your own in a very simple way.
The way Emms works is easy to customize with your own code or by using `M-x customize'.
You need to put all the .el files of emms in a directory in your load-path. For example, if you put all those files into ~/elisp/emms/, then in your ~/.emacs, you should do:
(add-to-list 'load-path "~/elisp/emms/")
If you are using XEmacs, you will need to edit Makefile as follows before continuing.
EMACS=xemacs
SITEFLAG=-no-site-file
You can byte-compile Emms by first entering the directory containing the Emms source code, followed by invoking:
make
Which will byte compile Emms. You can then invoke:
make install
Which will install Emms into your Emacs directories (provided you have the appropriate permissions to do so on your system).
Note that Emms is a light-weight and agile program, you can therefore run Emms just fine without byte compiling it.
After adding the location of the Emms code to the load-path variable, see See Installation. We invoke the following using the `emms-setup' feature which allows for quick and simple Emms setup.
(require 'emms-setup)
(emms-standard)
(emms-default-players)
After which Emms is set-up and ready to go!
The above will setup Emms with standard features (interactive playlists, audio track tag reading etc.) and a default list of players (ogg, mp3, mplayer etc.).
The `emms-setup' feature is provided by the file emms-setup.el. It is essentially a collection of shortcuts for setting up Emms quickly and simply. Everything you can do with `emms-setup' can also be done manually.
We use `emms-setup' by calling one of the setup functions. Each of the functions sets up Emms to include a number of features.
An Emms setup script. Invisible playlists and all the basics for playing media.
An Emms setup script. Everything included in the
emms-minimalisticsetup, the Emms interactive playlist mode and reading information from tagged audio files.
An Emms setup script. Everything included in the
emms-standardsetup and adds all the stable features which come with the Emms distribution.
An Emms setup script. Everything included in the
emms-allsetup and adds all of the features which come with the Emms distribution regardless of if they are considered stable or not. Use this if you like living on the edge.
`emms-setup' also comes with a convenience function to set a default list of media players.
It is also worth noting that you can write your own Emms setup functions like the above by looking at the existing function definitions in emms-setup.el.
This chapter discusses the configuration of Emms in more detail.
The following code fragment provides a minimal Emms setup without using the layer of `emms-setup'. It can maybe be used to better understand the internals of Emms. You can see how Emms needs to know about players (these are defined in `emms-player-simple') and about sources for tracks (trivial file system based sources, such as this `emms-directory-tree', are defined in `emms-source-file').
(require 'emms-player-simple)
(require 'emms-source-file)
(require 'emms-source-playlist)
(setq emms-player-list '(emms-player-mpg321
emms-player-ogg123
emms-player-mplayer))
For a discussion on how to define additional players, see See Simple Players.
Much of the behaviour of Emms can be changed by setting variables. For example:
(setq emms-info-asynchronously nil)
(setq emms-playlist-buffer-name "*Music*")
The first setq turns off the asynchronous updating of info tags. The
second sets the default name of the Emms playlist buffer.
Another way to change Emms variables is to use the M-x customize mechanism provided by Emacs.
Emms needs to traverse directories in order to find playable
media. The default method Emms uses to achive this is
emms-source-file-directory-tree-internal as defined in
emms-source-file.el. The above method is written portably and
will always work, but might be too slow if we want to load several
hundred tracks (or more).
emms-source-file.el defines another method for finding files,
emms-source-file-directory-tree-find which uses
GNU/find. emms-source-file-directory-tree-find is usually an
order of magnitude faster, but of course will not work if you do not
have GNU/find installed.
The method Emms will use is defined in the customisable variable emms-source-file-directory-tree-function.
This chapter demonstrates how to setup EMMS so that you can start listening to your music without having to read all of the documentation first.
The first thing you have to do is telling Emacs where the sources of EMMS are located. Let's say you have them in ~/elisp/emms/. So add this line to your .emacs.
(add-to-list 'load-path "~/elisp/emms")
Further informations about installing EMMS can be found in the installation chapter, See Installation.
Let's say you want to enable all features which are considered stable by
the EMMS developers. To achieve this you invoke the emms-all
setup function by adding the following three lines to your .emacs.
(require 'emms-setup)
(emms-all)
(emms-default-players)
The function emms-default-players in the last line sets up the
list of default players. The list contains lightweight specialized
players like ogg123 or mpg321 and we-play-everything-players like
mplayer or xine. To be sure that emms can play all your music you should
check that the needed players are installed.
Further informations about the several setup scripts can be found in the simple setup chapter, See Simple Setup.
Of course EMMS tries to display the tags of the music files you listen to. For this to work you have to make sure that the appropriate programs are installed. For mp3 files you need `mp3info', and for ogg files you need `ogginfo'.
The last thing to do is to tell EMMS the root directory of our music collection. Let's say all your music is in ~/Music or in subdirectories thereof.
(setq emms-source-file-default-directory "~/Music/")
OK, now we've set up EMMS. Reload your .emacs or restart Emacs to let the changes have an effect.
Now we will add all our music to a playlist by invoking M-x emms-add-directory-tree RET ~/Music/ RET. We do this because then EMMS will read the tags of all your music files and cache them. This is required for the browser, See The Browser.
To switch to the playlist buffer, invoke M-x emms-playlist-mode-go or simply M-x emms. You can see that most tracks are displayed with their file name, but track by track the filename gets replaced with the artist and track name of the file's tag.
Hit RET on a track to start playback.
Now you can start exploring EMMS. It's probably best to begin with the basic commands (see Basic Commands), the interactive playlists (see Interactive Playlists), and the browser (see The Browser).
If you have a bug to report, need help, or wish to suggest a feature, please feel free to use the Emms mailing list. The address of the list is emms-help@gnu.org. To subscribe to it, visit http://lists.gnu.org/mailman/listinfo/emms-help.
If you are familiar with the Gmane service, there is a Gmane newsgroup which mirrors this mailing address at gmane.emacs.emms.user.
Emms also has a website at http://www.gnu.org/software/emms/.
Before you can use the interface commands, you need a playlist to start with. The following commands allow you to add to the current playlist from different sources:
Note that the commands with the “emms-add-” prefix add the source to the playlist but do not start playing it immediately. Conversely, the commands with the “emms-play-” prefix begin playing the track immediately.
A source for a single file - either file, or queried from the user. If called with a prefix the file will be added like emms-add-file.
A source for a single file - either file, or queried from the user. If called with a prefix the file will be played like emms-play-file.
A source for a whole directory tree - either dir, or queried from the user.
A source for a whole directory tree - either dir, or queried from the user.
A source for multiple directory trees - either dir, or the value of emms-source-file-default-directory.
A source for multiple directory trees - either dir, or the value of emms-source-file-default-directory.
A source for the M3u or PLS playlist format from the file playlist.
A source for the M3u or PLS playlist format from the file playlist.
A source that will find files in dir or emms-source-file-default-directory which match regexp.
A source that will find files in dir or emms-source-file-default-directory which match regexp.
The basic functionality of Emms is just to play music without being noticed. It provides a few commands to skip the current track and such, but other than that it doesn't show up. Emms provides the following basic user commands (which you might want to bind to keystrokes):
Describe the current Emms track in the minibuffer. If insertp is non-nil, insert the description into the current buffer instead. This function uses emms-show-format to format the current track.
The core file emms.el provides the all basic functions for playing music, generating playlists and defining players.
The core file defines a number of user variables.
A list of players Emms can use. You need to set this in order to use Emms to play media.
The format to use for emms-show. Any "%s" is replaced by what emms-track-description-function returns for the currently playing track.
Non-nil if the Emms playlist should automatically repeat the playlist. If nil, playback will stop when the last track finishes playing.
Function for describing an Emms track in a user-friendly way.
A function that compares two tracks, and returns non-nil if the first track should be sorted before the second (see also
sort).
The core file provides hook variables for the basic functionality of Emms.
A hook run when an Emms player stopped playing. See also emms-player-finished-hook.
Hook run when a source got inserted into the playlist. The buffer is narrowed to the new tracks.
Hook run after another track is selected in the Emms playlist.
Hook run after the current Emms playlist is cleared. This happens both when the playlist is cleared and when a new buffer is created for it.
Hook run when an Emms player finishes playing a track. Please pay attention to the differences between emms-player-finished-hook and emms-player-stopped-hook. The former is called only when the player is stopped interactively; the latter, only when the player actually finishes playing a track.
Hook run when a player is paused or resumed. Use emms-player-paused-p to find the current state.
The core file also defines all the functions important to the basic use of Emms.
There are functions which deal with movement in the playlist.
Start playing the next track in the Emms playlist. Unlike
emms-next, this function doesn't signal an error when called at the end of the playlist. This function should only be called when no player is playing. This is a good function to put inemms-player-finished-hook.
Toggle whether emms repeats the playlist after it is done. See emms-repeat-playlist.
Toggle whether emms repeats the current track. See emms-repeat-track.
Some functions deal with the getting and setting track information.
Return the value of name for track. If there is no value, return default (or nil, if not given).
Return a description of track. This function uses emms-track-description-function.
Return an Emms player capable of playing track. This will be the first player whose PLAYABLEP function returns non-nil, or nil if no such player exists.
Return the currently selected track in the current playlist.
There are also functions which deal with the playing itself.
Declare that the current Emms player is finished. This should only be done by the current player itself.
Seek the current player seconds seconds. This can be a floating point number for sub-second fractions. It can also be negative to seek backwards.
For more basic commands defined in the core file see See Basic Commands.
Sources allow Emms to add and play tracks. Emms comes with a number of sources of its own. Sources are designed so that creating new ones will be easy.
For examples of Emms sources for files and directories see emms-source-file.el.
Play all files in emms-source-file-default-directory that match a specific regular expression.
An Emms source for a single file - either file, or queried from the user.
An Emms source for a whole directory tree - either dir, or queried from the user
An Emms source for multiple directory trees - either dir, or the value of emms-source-file-default-directory.
An EMMS source for playlists. See `emms-source-playlist-formats' for a list of supported formats.
An Emms source that will find files in dir or emms-source-file-default-directory that match regexp.
Return a list of all files under dir which match regex.
Return a regexp that matches everything any player (that supports files) can play.
Define a simple player with the use of `emms-define-player'. name is used to construct the name of the function like emms-player-name. types is a list of track types understood by this player. regex must be a regexp that matches the filenames the player can play. command specifies the command line argument to call the player and args are the command line arguments.
For a discussion on how to define new players see See New Player.
Starts a process playing filename using the specified cmdname with the specified params.
Sentinel for determining the end of process for the process proc and the sentinel string str.
Emms uses Emacs buffers to store the media tracks for playing. We call one such buffer a “playlist buffer” or an “Emms playlist buffer”. Emms then proceeds to play the media tracks in the buffer from top to bottom until the end of the playlist.
The name of the playlist buffer is defined in the variable emms-playlist-buffer-name and is set to be an invisible Emacs buffer by default. You can change to any name you want. For an example configuration see See Configuration.
You can create any number of playlist buffers you wish. At any time Emms has a single “current” buffer through which it proceeds track by track.
Create a new playlist buffer. The buffer is named name, but made unique. name defaults to `emms-playlist-buffer-name'. If called interactively, the new buffer is also selected.
Store the current playlist to FILE as the type FORMAT. The default format is specified by `emms-source-playlist-default-format'.
The current Emms playlist buffer is stored in the variable emms-playlist-buffer.
Emms is distributed with two predefined methods for retrieving info, provided by emms-info-mp3info.el and emms-info-ogginfo.el. Both packages are front-ends for command-line tools. Ogg track information is retrieved using the ogginfo software. Likewise, mp3 track information is available using mp3info.
Automatic track information retrieval is enabled by default in the `emms-standard', `emms-all' and `emms-devel' setup levels provided by emms-setup.el. For more information about emms-setup.el see See Simple Setup.
If you would like to know how Emms track retreival works and how we can define new methods for track retrieval see See Defining Info Methods.
There are a number of user variables which control the behaviour of `emms-info'.
Non-nil when Emms should update track information if the file changes. This will cause hard drive activity on track loading. If this is too annoying for you, set this variable to nil.
Non-nil when track information should be loaded asynchronously. This requires the feature `later-do' which is provided by the file later-do.el, which should come with Emms.
Functions which add information to tracks. Each is called with a track as argument.
An info method essentially consists of a function which given an Emms track returns the appropriate info for that track.
We can for example look at the predefined method for retrieving information about audio tracks in the Ogg format.
The function emms-info-ogginfo provided by emms-info-ogginfo.el accepts an Emms track as a single argument and returns the appropriate information string.
We then register our info function with Emms by adding it to the emms-info-functions list. The function will then be called at the right time to provide track info.
(add-to-list 'emms-info-functions 'emms-info-ogginfo)
Emms provides a visual, interactive playlist mode as well as the ability to use playlists without ever looking at then. This visual, interactive mode is called the `emms-playlist-mode' and is defined in emms-playlist-mode.el.
The interactive playlist mode is enabled by default in the `emms-standard', `emms-all' and `emms-devel' setup levels. For more information about Emms setup levels see See Simple Setup.
Switch to the current emms-playlist buffer and use emms-playlist-mode.
If you wish to make this the default EMMS playlist mode, add the following to your .emacs.
(setq emms-playlist-default-major-mode 'emms-playlist-mode)
The interactive playlist buffer shows the tracks in the current Emms playlist in the order in which they will be played. The current track will be highlighted.
When in the interactive playlist mode we can perform different actions on the current playlist.
We can also edit the playlist using familiar GNU/Emacs commands:
We can use the regular GNU/Emacs killing and yanking commands to move and copy tracks in between playlist buffers. We can use the same commands to insert arbitrary text into the playlist buffers together with the playlist tracks. Text which is not a track is ignored by the program and can therefore be used to include titles and annotations within the playlist.
The Markable Playlists provided by the file emms-mark.el are an alternative to the default interactive playlists, See Interactive Playlists. They allow marking tracks with keybindings familiar to users of dired.
To enable the Markable Playlists you have to add
(require 'emms-mark)
to your .emacs. Then you can activate emms-mark-mode by executing M-x emms-mark-mode in a playlist buffer. You can return to the default interactive playlist mode with M-x emms-mark-mode-disable.
If you wish to make this the default EMMS playlist mode, add the following to your .emacs.
(setq emms-playlist-default-major-mode 'emms-mark-mode)
When tracks are marked you can operate on them:
emms-mark is also intent to provide a way for user to select tracks for other command to operate on them. Currently, emms-tag-editor.el used the emms-mark to edit tags of selected tracks. Two function is useful for elisp programer to handle marked tracks.
This function take a function to perform on all marked tracks. A optional argument `move-flag' to tell the function to move forward line after calling given function. If the given function didn't change position, the second argument should set to non-nil.
This function is very similar to `emms-mark-do-with-marked-track' except it collects result of given function (that's why named with `mapcar').
Emms introduces a high abstraction layer for playing music so you can customise it to your needs.
The file emms-player-simple.el defines some easy players to start with, but it shouldn't be hard to provide a function for your favourite player. We will start with an easy example that shows how we can use the play command under Unix to play our WAV files.
Play is a very easy command line player for various format. If you want your emms to play WAV files just put the following lines in you .emacs:
(require 'emms-player-simple)
(define-emms-simple-player play '(file) "\\.wav$" "play")
Huh! Wasn't that easy?
The macro function define-emms-simple-player takes a minimum of three arguments. The first argument (play in our example) defines the name of the player. It's used to name the player functions. The second is a regexp, that defines which files to play with our player. \\.wav$ matches any filename ending with a dot and the string wav. The last argument is the actual command line command we use to play our files. You can also add the path but we just assume that the command is in your path. All arguments you add to these three are optional. They define the command line arguments you want to add to your argument. If you want to hear the wav file of your favourite artist in the most possible volume use the following line:
(require 'emms-player-simple)
(define-emms-simple-player play
'(file)
"\\artist-*.wav$"
"play"
"--volume=100")
Please notice that you have to add the arguments as strings!
The command line tool you use for define-emms-simple-player has to take one song as argument and stop after playing that particular song. For any other concept you will need to customise emms a bit more...
The most players you use will be simple players so you don't need to read this chapter. But if you are curious how you can use (almost) every player in emms read further...
In this chapter we will use mpg321 to construct a player that actually can pause a track, restart it and show rest time. We won't implement all of that, but after that chapter you will know how to define it.
The command define-emms-simple-player is just a abstraction layer for define-emms-player, which is a little bit more complicated but much more powerful!
(define-emms-player "emms-mpg321-remote"
:start 'emms-mpg321-remote-start
:stop 'emms-mpg321-remote-stop
:playablep 'emms-mpg321-remote-playable-p)
So, that is almost all! define-emms-player takes a minimum of three arguments. The first is the name of the player. The rest are methods with functions to call. Three methods are required: start, stop and playable. Start says Emms how to start a track (sic!), stop how to stop a player and playablep should return non-nil if the player can play the track.
So we just need these three functions to get our mpg321-remote:
First we code the start function. We will check if there's a open process and start one otherwise. Then we send a string to the process with the filename and set a filter.
(defun emms-mpg321-remote-start ()
(unless (get-process ``mpg321-remote'')
(setq emms-mpg321-remote-process
(start-process "mpg321-remote-process"
"*mpg321*" "mpg321" "-R" "abc"))
(process-send-string "mpg321-remote-process"
(concat "l " (emms-track-name track)))
(set-process-filter emms-mpg321-remote-process 'emms-mpg321-remote-filter)))
We need the filter, as mpg321-remote won't quit after playing the track as the simple player do. We wait until the process sends the output “(at-sign)P 0” (the signal of mpg321 that the song ended) to the filter and call emms-mpg321-remote-stop.
(defun emms-mpg321-remote-filter (process output)
(when (string-match "(at-sign)P 0" output)
(emms-mpg321-remote-stop)))
emms-mpg321-remote-stop won't do anything interesting. It just test if there are other files to play and close the process otherwise.
(defun emms-mpg321-remote-stop ()
(unless emms-playlist
(process-send-string "mpg321-remote-process" "Q\n"))
And to make that a playable example I also added emms-mpg321-remote-playablep, which I really just steal from emms-player-simple.el
(defun emms-mpg321-remote-playablep (track)
"Return non-nil when we can play this track."
(and (eq 'file (emms-track-type track))
Now we have a ready player and we could add commands like emms-mpg321-remote-pause for example.
The Browser allows you to browse the metadata cache and add tracks to your playlist. It includes a powerful interactive mode.
The Browser is defined in emms-browser.el and is included in the emms-all setup level. For more information about Emms setup levels see See Simple Setup.
You can also manually add the Browser to your Emms setup by loading it explicitly with:
(require 'emms-browser)
To be properly useful, you should do M-x emms-add-directory-tree to all the files you own at least once so that the cache is fully populated.
The browser interface allows you to display and interact with your tracks in many different ways. There are a number of ways to start the browser.
Display browser and playlist. Toggle between selecting browser, playlist or hiding both. Tries to behave sanely if the user has manually changed the window configuration.
Once the Browser is displayed you can use it to managed your track collection and playlists. The Browser is interactive and has its own keybindings.
If you want to display a subset of your collection (such as a directory of 80s music, only avi files, etc.) then you can extend the Browser by defining “filters”.
Show everything:
(emms-browser-make-filter "all" 'ignore)
Set "all" as the default filter:
(emms-browser-set-filter (assoc "all" emms-browser-filters))
Show all files (no streamlists, etc):
(emms-browser-make-filter
"all-files" (emms-browser-filter-only-type 'file))
Show only tracks in one folder:
(emms-browser-make-filter
"80s" (emms-browser-filter-only-dir "~/Mp3s/80s"))
Show all tracks played in the last month:
(emms-browser-make-filter
"last-month" (emms-browser-filter-only-recent 30))
After executing the above commands, you can use M-x emms-browser-show-all, emms-browser-show-80s, etc to toggle between different collections. Alternatively you can use '<' and '>' to cycle through the available filters.
The second argument to make-filter is a function which returns t if a single track should be filtered. You can write your own filter functions to check the type of a file, etc.
Show only tracks not played in the last year:
(emms-browser-make-filter "not-played"
(lambda (track)
(not (funcall (emms-browser-filter-only-recent 365) track))))
Show all files that are not in the pending directory:
(emms-browser-make-filter
"all"
(lambda (track)
(or
(funcall (emms-browser-filter-only-type 'file) track)
(not (funcall
(emms-browser-filter-only-dir "~/Media/pending") track)))))
The browser will attempt to display cover images if they're available. By default it looks for images cover_small.jpg, cover_med.jpg, etc. Customize emms-browser-covers to use your own covers. Note that you'll probably want to resize your existing covers to particular sizes. Suggested sizes are 100x100 for small, and 200x200 for medium.
Also, Emacs by default will jump around a lot when scrolling a buffer with images. In order to prevent that, you can set scroll-up-aggressively and scroll-down-aggressively to the number “0.0”.
To show a 'no cover' image for albums which don't have a cover, add the following code to your .emacs:
(setq emms-browser-default-covers
(list "/path/to/cover_small.jpg" nil nil)
The medium and large images can be set as well.
You can download an example `no cover' image.
The Browser's look can be customised. You can change the way the tree structure looks, the display format and display faces.
You can change the way the tree is displayed by modifying the function emms-browser-next-mapping-type.
The following code displays artist->track instead of artist->album->track when you switch to the 'singles' filter:
(defadvice emms-browser-next-mapping-type
(after no-album (current-mapping))
(when (eq ad-return-value 'info-album)
(setq ad-return-value 'info-title)))
(defun toggle-album-display ()
(if (string= emms-browser-current-filter-name "singles")
(ad-activate 'emms-browser-next-mapping-type)
(ad-deactivate 'emms-browser-next-mapping-type)))
(add-hook 'emms-browser-filter-changed-hook 'toggle-album-display)
Format strings govern the way items are displayed in the browser and playlist. You can customize these if you wish.
emms-browser-default-format controls the format to use when no other format has been explicitly defined. By default, only track and albums deviate from the default.
To customise the format of a particular type, find the name of the field you want to use (eg `info-artist', `info-title', etc), and insert that into emms-browser-<type>-format or emms-browser-playlist-<type>-format. For example, if you wanted to remove track numbers from tracks in both the browser and playlist, you could do:
(defvar emms-browser-info-title-format "%i%n")
(defvar emms-browser-playlist-info-title-format
emms-browser-info-title-format)
The format specifiers available include:
Note that if you use track-related items like %t, it will take the data from the first track.
The faces used to display the various fields are also customizable. They are in the format emms-browser-<type>-face, where type is one of "year/genre", "artist", "album" or "track". Note that faces lack the initial "info-" part. For example, to change the artist face, type M-x customize-face emms-browser-artist-face.
The `emms-playlist-sort' module, defined in the emms-playlist-sort.el package provides functions for sorting Emms playlists. `emms-playlist-sort' can be loaded by invoking:
(require 'emms-playlist-sort)
Using emms-tag-editor.el, emms can set tag info of tracks. With the help of external programs, such as `mp3info', `vorbiscomment', emms can write the tag info to track file as well.
Using key `E' to edit tags of current track or marked tracks (see Markable Playlists for how to mark tracks). The track's info is listed in text format. The field name is marked in bold face and not editable. And tag info is after an equal sign and is changable. A special field `name' is the track file name. If any change made in this field, the track file will rename to the new name.
A few commands to perform changes on all tracks.
Set specified tag of all tracks to the string reading from minibuffer.
Replace things that matching regexp in specified tag of all tracks.
Make changes take effect. `emms-tag-editor-submit-and-exit' does the same thing except it bury current buffer.
This variable determine how to insert track fields to `emms-tag-editor-edit-buffer'. Emms tag info editable fields is usually determined by the extension of track name. The variable `emms-tag-editor-tags' contains all tags that emms track may have. A single charactar is asign to the tag to make the `emms-tag-editor-formats' easier to generate.
To write tags to track file, an extern program should specific in this variable. Typically, a function should write for other type of track. If the extern program has an interface like `mp3info', you don't have to write a function. Take `mp3' and `ogg' as example.
We can display information about the currenty playing track on the Emacs mode line using the package `emms-mode-line' which is provided by the file emms-mode-line.el.
To activate this feature invoke:
(require 'emms-mode-line)
(emms-mode-line 1)
It is also possible to display the amount of time a track has been playing. This feature is defined in the `emms-playing-time' package which is provided by the file emms-playing-time.el.
To use this feature invoke:
(require 'emms-playing-time)
(emms-playing-time 1)
Note: `(emms-playing-time -1)' will disable emms-playing-time module completely, and is not recommended. (since some other emms modules may rely on it, such as `emms-lastfm.el')
Instead, to toggle displaying playing time on mode line, one could call `emms-playing-time-enable-display' and `emms-playing-time-disable-display'."
Emms provides an interface to the Music Player Daemon(MusicPD) software. The package is called `emms-player-mpd' and is provided by the file emms-player-mpd.el.
The advantages of using MusicPD as an EMMS backend include the following.
To load `emms-player-mpd' invoke:
(require 'emms-player-mpd)
Set the variables emms-player-mpd-server-name and emms-player-mpd-server-port to the location and port (respectively) of your MusicPD server. For example:
(setq emms-player-mpd-server-name "localhost")
(setq emms-player-mpd-server-port "6600")
If your MusicPD setup requires a password, you will to set emms-player-mpd-server-password as follows.
(setq emms-player-mpd-server-password "mypassword")
To get track information from MusicPD, invoke the following:
(add-to-list 'emms-info-functions 'emms-info-mpd)
Adding `emms-player-mpd' to your Emms player list is accomplished by invoking:
(add-to-list 'emms-player-list 'emms-player-mpd)
If you use absolute file names in your m3u playlists (which is most likely), make sure you set emms-player-mpd-music-directory to the value of "music_directory" from your MusicPD config. There are additional options available as well, but the defaults should be sufficient for most uses.
You can set emms-player-mpd-sync-playlist to nil if your master EMMS playlist contains only stored playlists.
Connect to MusicPD and retrieve its current playlist. Afterward, the status of MusicPD will be tracked.
Terminate the MusicPD client process and disconnect from MusicPD.
Describe the current EMMS track in the minibuffer. If INSERTP is non-nil, insert the description into the current buffer instead. This function uses emms-show-format to format the current track. It differs from emms-show in that it asks MusicPD for the current track, rather than Emms.
Cause the tracks in DIR to be updated in the MusicPD database.
Cause all tracks in the MusicPD music directory to be updated in the MusicPD database.
Dump all MusicPD data from DIR into the EMMS cache. This is useful to do when you have recently acquired new music.
Dump all MusicPD data into the EMMS cache. This is useful to do once, just before using emms-browser.el, in order to prime the cache.
To activate this, add the following to your .emacs.
(require 'emms-volume)
(setq emms-volume-change-function 'emms-volume-mpd-change)
We can display the lyrics of a song in time with the music using the `emms-lyrics' package provided by the file emms-lyrics.el.
The lyrics files should have the extention “.lrc”, and can be placed under either the same directory as the music files or emms-lyrics-dir.
To add this feature we invoke:
(require 'emms-lyrics)
(emms-lyrics 1)
There are a number of variables we can set to define the way that `emms-lyrics' behaves, we can set these directly or by using the Customize feature in Emacs.
Local lyrics repository. emms-lyrics-find-lyric will look for lyrics in current directory(i.e., same as the music file) and this directory.
Format for displaying lyrics. "%s" will be replaced by the lyrics string.
Interval between scroller timers. The shorter, the faster.
We can control `emms-lyrics' with the help of the following functions:
Sometimes EMMS might be blocked by some other processes, like Gnus checking new messages, while emms-lyrics still goes on, thus make music and lyrics asynchronical.
One possible solution is to pause EMMS when these processes are running. e.g., for Gnus, try the following:
(defadvice gnus-group-get-new-news (around pause-emms)
"Pause emms while Gnus is fetching mails or news."
(if emms-player-playing-p
(progn (emms-pause)
ad-do-it
(emms-pause))
ad-do-it))
(ad-activate 'gnus-group-get-new-news)
We can use the `emms-volume' package, as provided by the emms-volume.el file, to manipulate the volume.
The amount to use when raising or lowering the volume using the emms-volume interface.
This should be a positive integer.
If you feel like binding those two functions to global keys — don't do it or you'll miss the convenience of `emms-volume-minor-mode'. Instead, bind the following two commands to some keys that you like.
Raise volume and enable or extend the `emms-volume-minor-mode' timeout.
Lower volume and enable or extend the `emms-volume-minor-mode' timeout.
Example:
(global-set-key (kbd "C-c +") 'emms-volume-mode-plus)
(global-set-key (kbd "C-c -") 'emms-volume-mode-minus)
Whenever you use one of these keys or call these functions with M-x, Emms will be put into `emms-volume-minor-mode' for a short period defined by `emms-volume-mode-timeout'.
The timeout in amount of seconds used by `emms-volume-minor-mode'.
In this interval you can raise/lower the volume simply by pressing
+ or -, which will also reset the timer to its initial
value. So instead of pressing C-c + six times to increase volume
by six steps of emms-volume-change-amount, you would simply type
C-c + + + + + +.
Currently the `emms-lastfm' package provided by the file emms-lastfm.el offers the two most important last.fm services.
For both services you need a last.fm account and you have to set up two variables.
To set them in your .emacs add something like this.
(setq emms-lastfm-username "my-user-name"
emms-lastfm-password "very-secret!")
You can edit them with the `customize' interface, too.
These functions enable/disable submission of track informations to last.fm.
Start submitting to last.fm. Note that submission will start with the next track, not the current one.
If you want to enable submission of tracks by default, put this into your .emacs.
(emms-lastfm-activate)
On http://www.last.fm you'll find lots of links referencing last.fm radio stations like lastfm://artist/Metallica/fans. You can listen to them using these functions.
Starts playing the stream referenced by lastfm-url. When run interactively you will be prompted for a last.fm URL.
You can also insert Last.fm streams into playlists (or use emms-streams.el to listen to them) by activating the player as follows.
(add-to-list 'emms-player-list 'emms-player-lastfm-radio)
To add a Last.fm stream into the current playlist, do the following: M-x emms-add-lastfm RET lastfm://rest-of-url RET. To directly start playing use emms-play-lastfm.
To read more about the concept of the “current” playlist See Playlists. To add a last.fm stream to the playlist buffer that's currently browsed (which might not be the “current” playlist), use emms-insert-lastfm instead.
For your convenience there are some functions which let you choose a common radio station without having to remember or type its last.fm URL.
Starts playing the similarlyrics still goes on, thus make music and lyrics asynchronical.
One possible solution is to pause EMMS when these processes are running. e.g., for Gnus, try the following:
(defadvice gnus-group-get-new-news (around pause-emms) "Pause emms while Gnus is fetching mails or news." (if emms-player-playing-p (progn (emms-pause) ad-do-it (emms-pause)) ad-do-it)) (ad-activate 'gnus-group-get-new-news)22 Volume
We can use the `emms-volume' package, as provided by the emms-volume.el file, to manipulate the volume.
— User Option: emms-volume-change-amount
The amount to use when raising or lowering the volume using the emms-volume interface.
This should be a positive integer.
If you feel like binding those two functions to global keys — don't do it or you'll miss the convenience of `emms-volume-minor-mode'. Instead, bind the following two commands to some keys that you like.
— Function: emms-volume-mode-plus
Raise volume and enable or extend the `emms-volume-minor-mode' timeout.
— Function: emms-volume-mode-minus
Lower volume and enable or extend the `emms-volume-minor-mode' timeout.
Example:
(global-set-key (kbd "C-c +") 'emms-volume-mode-plus) (global-set-key (kbd "C-c -") 'emms-volume-mode-minus)Whenever you use one of these keys or call these functions with M-x, Emms will be put into `emms-volume-minor-mode' for a short period defined by `emms-volume-mode-timeout'.
— User Option: emms-volume-mode-timeout
The timeout in amount of seconds used by `emms-volume-minor-mode'.
In this interval you can raise/lower the volume simply by pressing + or -, which will also reset the timer to its initial value. So instead of pressing C-c + six times to increase volume by six steps of
emms-volume-change-amount, you would simply type C-c + + + + + +.23 Last.fm
Currently the `emms-lastfm' package provided by the file emms-lastfm.el offers the two most important last.fm services.
- It can submit informations of tracks (artist, title, album) you listen to to last.fm to enhance your music profile.
- You can listen to the Last.fm radio. Those are the streams beginning with lastfm://.
For both services you need a last.fm account and you have to set up two variables.
To set them in your .emacs add something like this.
(setq emms-lastfm-username "my-user-name" emms-lastfm-password "very-secret!")You can edit them with the `customize' interface, too.
23.1 Submitting track informations
These functions enable/disable submission of track informations to last.fm.
— Function: emms-lastfm-enable
Start submitting to last.fm. Note that submission will start with the next track, not the current one.
If you want to enable submission of tracks by default, put this into your .emacs.
(emms-lastfm-activate)23.2 Last.fm radio
On http://www.last.fm you'll find lots of links referencing last.fm radio stations like lastfm://artist/Metallica/fans. You can listen to them using these functions.
— Function: emms-lastfm-radio lastfm-url
Starts playing the stream referenced by lastfm-url. When run interactively you will be prompted for a last.fm URL.
You can also insert Last.fm streams into playlists (or use emms-streams.el to listen to them) by activating the player as follows.
(add-to-list 'emms-player-list 'emms-player-lastfm-radio)To add a Last.fm stream into the current playlist, do the following: M-x emms-add-lastfm RET lastfm://rest-of-url RET. To directly start playing use emms-play-lastfm.
To read more about the concept of the “current” playlist See Playlists. To add a last.fm stream to the playlist buffer that's currently browsed (which might not be the “current” playlist), use emms-insert-lastfm instead.
For your convenience there are some functions which let you choose a common radio station without having to remember or type its last.fm URL.
— Function: emms-lastfm-radio-similar-artists artist
Starts playing the similarlyrics still goes on, thus make music and lyrics asynchronical.
One possible solution is to pause EMMS when these processes are running. e.g., for Gnus, try the following:
(defadvice gnus-group-get-new-news (around pause-emms) "Pause emms while Gnus is fetching mails or news." (if emms-player-playing-p (progn (emms-pause) ad-do-it (emms-pause)) ad-do-it)) (ad-activate 'gnus-group-get-new-news)22 Volume
We can use the `emms-volume' package, as provided by the emms-volume.el file, to manipulate the volume.
— User Option: emms-volume-change-amount
The amount to use when raising or lowering the volume using the emms-volume interface.
This should be a positive integer.
If you feel like binding those two functions to global keys — don't do it or you'll miss the convenience of `emms-volume-minor-mode'. Instead, bind the following two commands to some keys that you like.
— Function: emms-volume-mode-plus
Raise volume and enable or extend the `emms-volume-minor-mode' timeout.
— Function: emms-volume-mode-minus
Lower volume and enable or extend the `emms-volume-minor-mode' timeout.
Example:
(global-set-key (kbd "C-c +") 'emms-volume-mode-plus) (global-set-key (kbd "C-c -") 'emms-volume-mode-minus)Whenever you use one of these keys or call these functions with M-x, Emms will be put into `emms-volume-minor-mode' for a short period defined by `emms-volume-mode-timeout'.
— User Option: emms-volume-mode-timeout
The timeout in amount of seconds used by `emms-volume-minor-mode'.
In this interval you can raise/lower the volume simply by pressing + or -, which will also reset the timer to its initial value. So instead of pressing C-c + six times to increase volume by six steps of
emms-volume-change-amount, you would simply type C-c + + + + + +.23 Last.fm
Currently the `emms-lastfm' package provided by the file emms-lastfm.el offers the two most important last.fm services.
- It can submit informations of tracks (artist, title, album) you listen to to last.fm to enhance your music profile.
- You can listen to the Last.fm radio. Those are the streams beginning with lastfm://.
For both services you need a last.fm account and you have to set up two variables.
To set them in your .emacs add something like this.
(setq emms-lastfm-username "my-user-name" emms-lastfm-password "very-secret!")You can edit them with the `customize' interface, too.
23.1 Submitting track informations
These functions enable/disable submission of track informations to last.fm.
— Function: emms-lastfm-enable
Start submitting to last.fm. Note that submission will start with the next track, not the current one.
If you want to enable submission of tracks by default, put this into your .emacs.
(emms-lastfm-activate)23.2 Last.fm radio
On http://www.last.fm you'll find lots of links referencing last.fm radio stations like lastfm://artist/Metallica/fans. You can listen to them using these functions.
— Function: emms-lastfm-radio lastfm-url
Starts playing the stream referenced by lastfm-url. When run interactively you will be prompted for a last.fm URL.
You can also insert Last.fm streams into playlists (or use emms-streams.el to listen to them) by activating the player as follows.
(add-to-list 'emms-player-list 'emms-player-lastfm-radio)To add a Last.fm stream into the current playlist, do the following: M-x emms-add-lastfm RET lastfm://rest-of-url RET. To directly start playing use emms-play-lastfm.
To read more about the concept of the “current” playlist See Playlists. To add a last.fm stream to the playlist buffer that's currently browsed (which might not be the “current” playlist), use emms-insert-lastfm instead.
For your convenience there are some functions which let you choose a common radio station without having to remember or type its last.fm URL.
— Function: emms-lastfm-radio-similar-artists artist
Starts playing the similarlyrics still goes on, thus make music and lyrics asynchronical.
One possible solution is to pause EMMS when these processes are running. e.g., for Gnus, try the following:
(defadvice gnus-group-get-new-news (around pause-emms) "Pause emms while Gnus is fetching mails or news." (if emms-player-playing-p (progn (emms-pause) ad-do-it (emms-pause)) ad-do-it)) (ad-activate 'gnus-group-get-new-news)22 Volume
We can use the `emms-volume' package, as provided by the emms-volume.el file, to manipulate the volume.
— User Option: emms-volume-change-amount
The amount to use when raising or lowering the volume using the emms-volume interface.
This should be a positive integer.
If you feel like binding those two functions to global keys — don't do it or you'll miss the convenience of `emms-volume-minor-mode'. Instead, bind the following two commands to some keys that you like.
— Function: emms-volume-mode-plus
Raise volume and enable or extend the `emms-volume-minor-mode' timeout.
— Function: emms-volume-mode-minus
Lower volume and enable or extend the `emms-volume-minor-mode' timeout.
Example:
(global-set-key (kbd "C-c +") 'emms-volume-mode-plus) (global-set-key (kbd "C-c -") 'emms-volume-mode-minus)Whenever you use one of these keys or call these functions with M-x, Emms will be put into `emms-volume-minor-mode' for a short period defined by `emms-volume-mode-timeout'.
— User Option: emms-volume-mode-timeout
The timeout in amount of seconds used by `emms-volume-minor-mode'.
In this interval you can raise/lower the volume simply by pressing + or -, which will also reset the timer to its initial value. So instead of pressing C-c + six times to increase volume by six steps of
emms-volume-change-amount, you would simply type C-c + + + + + +.23 Last.fm
Currently the `emms-lastfm' package provided by the file emms-lastfm.el offers the two most important last.fm services.
- It can submit informations of tracks (artist, title, album) you listen to to last.fm to enhance your music profile.
- You can listen to the Last.fm radio. Those are the streams beginning with lastfm://.
For both services you need a last.fm account and you have to set up two variables.
To set them in your .emacs add something like this.
(setq emms-lastfm-username "my-user-name" emms-lastfm-password "very-secret!")You can edit them with the `customize' interface, too.
23.1 Submitting track informations
These functions enable/disable submission of track informations to last.fm.
— Function: emms-lastfm-enable
Start submitting to last.fm. Note that submission will start with the next track, not the current one.
If you want to enable submission of tracks by default, put this into your .emacs.
(emms-lastfm-activate)23.2 Last.fm radio
On http://www.last.fm you'll find lots of links referencing last.fm radio stations like lastfm://artist/Metallica/fans. You can listen to them using these functions.
— Function: emms-lastfm-radio lastfm-url
Starts playing the stream referenced by lastfm-url. When run interactively you will be prompted for a last.fm URL.
You can also insert Last.fm streams into playlists (or use emms-streams.el to listen to them) by activating the player as follows.
(add-to-list 'emms-player-list 'emms-player-lastfm-radio)To add a Last.fm stream into the current playlist, do the following: M-x emms-add-lastfm RET lastfm://rest-of-url RET. To directly start playing use emms-play-lastfm.
To read more about the concept of the “current” playlist See Playlists. To add a last.fm stream to the playlist buffer that's currently browsed (which might not be the “current” playlist), use emms-insert-lastfm instead.
For your convenience there are some functions which let you choose a common radio station without having to remember or type its last.fm URL.
— Function: emms-lastfm-radio-similar-artists artist
Starts playing the similarlyrics still goes on, thus make music and lyrics asynchronical.
One possible solution is to pause EMMS when these processes are running. e.g., for Gnus, try the following:
(defadvice gnus-group-get-new-news (around pause-emms) "Pause emms while Gnus is fetching mails or news." (if emms-player-playing-p (progn (emms-pause) ad-do-it (emms-pause)) ad-do-it)) (ad-activate 'gnus-group-get-new-news)22 Volume
We can use the `emms-volume' package, as provided by the emms-volume.el file, to manipulate the volume.
— User Option: emms-volume-change-amount
The amount to use when raising or lowering the volume using the emms-volume interface.
This should be a positive integer.
If you feel like binding those two functions to global keys — don't do it or you'll miss the convenience of `emms-volume-minor-mode'. Instead, bind the following two commands to some keys that you like.
— Function: emms-volume-mode-plus
Raise volume and enable or extend the `emms-volume-minor-mode' timeout.
— Function: emms-volume-mode-minus
Lower volume and enable or extend the `emms-volume-minor-mode' timeout.
Example:
(global-set-key (kbd "C-c +") 'emms-volume-mode-plus) (global-set-key (kbd "C-c -") 'emms-volume-mode-minus)Whenever you use one of these keys or call these functions with M-x, Emms will be put into `emms-volume-minor-mode' for a short period defined by `emms-volume-mode-timeout'.
— User Option: emms-volume-mode-timeout
The timeout in amount of seconds used by `emms-volume-minor-mode'.
In this interval you can raise/lower the volume simply by pressing + or -, which will also reset the timer to its initial value. So instead of pressing C-c + six times to increase volume by six steps of
emms-volume-change-amount, you would simply type C-c + + + + + +.23 Last.fm
Currently the `emms-lastfm' package provided by the file emms-lastfm.el offers the two most important last.fm services.
- It can submit informations of tracks (artist, title, album) you listen to to last.fm to enhance your music profile.
- You can listen to the Last.fm radio. Those are the streams beginning with lastfm://.
For both services you need a last.fm account and you have to set up two variables.
To set them in your .emacs add something like this.
(setq emms-lastfm-username "my-user-name" emms-lastfm-password "very-secret!")You can edit them with the `customize' interface, too.
23.1 Submitting track informations
These functions enable/disable submission of track informations to last.fm.
— Function: emms-lastfm-enable
Start submitting to last.fm. Note that submission will start with the next track, not the current one.
If you want to enable submission of tracks by default, put this into your .emacs.
(emms-lastfm-activate)23.2 Last.fm radio
On http://www.last.fm you'll find lots of links referencing last.fm radio stations like lastfm://artist/Metallica/fans. You can listen to them using these functions.
— Function: emms-lastfm-radio lastfm-url
Starts playing the stream referenced by lastfm-url. When run interactively you will be prompted for a last.fm URL.
You can also insert Last.fm streams into playlists (or use emms-streams.el to listen to them) by activating the player as follows.
(add-to-list 'emms-player-list 'emms-player-lastfm-radio)To add a Last.fm stream into the current playlist, do the following: M-x emms-add-lastfm RET lastfm://rest-of-url RET. To directly start playing use emms-play-lastfm.
To read more about the concept of the “current” playlist See Playlists. To add a last.fm stream to the playlist buffer that's currently browsed (which might not be the “current” playlist), use emms-insert-lastfm instead.
For your convenience there are some functions which let you choose a common radio station without having to remember or type its last.fm URL.
— Function: emms-lastfm-radio-similar-artists artist
Starts playing the similarlyrics still goes on, thus make music and lyrics asynchronical.
One possible solution is to pause EMMS when these processes are running. e.g., for Gnus, try the following:
(defadvice gnus-group-get-new-news (around pause-emms) "Pause emms while Gnus is fetching mails or news." (if emms-player-playing-p (progn (emms-pause) ad-do-it (emms-pause)) ad-do-it)) (ad-activate 'gnus-group-get-new-news)22 Volume
We can use the `emms-volume' package, as provided by the emms-volume.el file, to manipulate the volume.
— User Option: emms-volume-change-amount
The amount to use when raising or lowering the volume using the emms-volume interface.
This should be a positive integer.
If you feel like binding those two functions to global keys — don't do it or you'll miss the convenience of `emms-volume-minor-mode'. Instead, bind the following two commands to some keys that you like.
— Function: emms-volume-mode-plus
Raise volume and enable or extend the `emms-volume-minor-mode' timeout.
— Function: emms-volume-mode-minus
Lower volume and enable or extend the `emms-volume-minor-mode' timeout.
Example:
(global-set-key (kbd "C-c +") 'emms-volume-mode-plus) (global-set-key (kbd "C-c -") 'emms-volume-mode-minus)Whenever you use one of these keys or call these functions with M-x, Emms will be put into `emms-volume-minor-mode' for a short period defined by `emms-volume-mode-timeout'.
— User Option: emms-volume-mode-timeout
The timeout in amount of seconds used by `emms-volume-minor-mode'.
In this interval you can raise/lower the volume simply by pressing + or -, which will also reset the timer to its initial value. So instead of pressing C-c + six times to increase volume by six steps of
emms-volume-change-amount, you would simply type C-c + + + + + +.23 Last.fm
Currently the `emms-lastfm' package provided by the file emms-lastfm.el offers the two most important last.fm services.
- It can submit informations of tracks (artist, title, album) you listen to to last.fm to enhance your music profile.
- You can listen to the Last.fm radio. Those are the streams beginning with lastfm://.
For both services you need a last.fm account and you have to set up two variables.
To set them in your .emacs add something like this.
(setq emms-lastfm-username "my-user-name" emms-lastfm-password "very-secret!")You can edit them with the `customize' interface, too.
23.1 Submitting track informations
These functions enable/disable submission of track informations to last.fm.
— Function: emms-lastfm-enable
Start submitting to last.fm. Note that submission will start with the next track, not the current one.
If you want to enable submission of tracks by default, put this into your .emacs.
(emms-lastfm-activate)23.2 Last.fm radio
On http://www.last.fm you'll find lots of links referencing last.fm radio stations like lastfm://artist/Metallica/fans. You can listen to them using these functions.
— Function: emms-lastfm-radio lastfm-url
Starts playing the stream referenced by lastfm-url. When run interactively you will be prompted for a last.fm URL.
You can also insert Last.fm streams into playlists (or use emms-streams.el to listen to them) by activating the player as follows.
(add-to-list 'emms-player-list 'emms-player-lastfm-radio)To add a Last.fm stream into the current playlist, do the following: M-x emms-add-lastfm RET lastfm://rest-of-url RET. To directly start playing use emms-play-lastfm.
To read more about the concept of the “current” playlist See Playlists. To add a last.fm stream to the playlist buffer that's currently browsed (which might not be the “current” playlist), use emms-insert-lastfm instead.
For your convenience there are some functions which let you choose a common radio station without having to remember or type its last.fm URL.
— Function: emms-lastfm-radio-similar-artists artist
Starts playing the similarlyrics still goes on, thus make music and lyrics asynchronical.
One possible solution is to pause EMMS when these processes are running. e.g., for Gnus, try the following:
(defadvice gnus-group-get-new-news (around pause-emms) "Pause emms while Gnus is fetching mails or news." (if emms-player-playing-p (progn (emms-pause) ad-do-it (emms-pause)) ad-do-it)) (ad-activate 'gnus-group-get-new-news)22 Volume
We can use the `emms-volume' package, as provided by the emms-volume.el file, to manipulate the volume.
— User Option: emms-volume-change-amount
The amount to use when raising or lowering the volume using the emms-volume interface.
This should be a positive integer.
If you feel like binding those two functions to global keys — don't do it or you'll miss the convenience of `emms-volume-minor-mode'. Instead, bind the following two commands to some keys that you like.
— Function: emms-volume-mode-plus
Raise volume and enable or extend the `emms-volume-minor-mode' timeout.
— Function: emms-volume-mode-minus
Lower volume and enable or extend the `emms-volume-minor-mode' timeout.
Example:
(global-set-key (kbd "C-c +") 'emms-volume-mode-plus) (global-set-key (kbd "C-c -") 'emms-volume-mode-minus)Whenever you use one of these keys or call these functions with M-x, Emms will be put into `emms-volume-minor-mode' for a short period defined by `emms-volume-mode-timeout'.
— User Option: emms-volume-mode-timeout
The timeout in amount of seconds used by `emms-volume-minor-mode'.
In this interval you can raise/lower the volume simply by pressing + or -, which will also reset the timer to its initial value. So instead of pressing C-c + six times to increase volume by six steps of
emms-volume-change-amount, you would simply type C-c + + + + + +.23 Last.fm
Currently the `emms-lastfm' package provided by the file emms-lastfm.el offers the two most important last.fm services.
- It can submit informations of tracks (artist, title, album) you listen to to last.fm to enhance your music profile.
- You can listen to the Last.fm radio. Those are the streams beginning with lastfm://.
For both services you need a last.fm account and you have to set up two variables.
To set them in your .emacs add something like this.
(setq emms-lastfm-username "my-user-name" emms-lastfm-password "very-secret!")You can edit them with the `customize' interface, too.
23.1 Submitting track informations
These functions enable/disable submission of track informations to last.fm.
— Function: emms-lastfm-enable
Start submitting to last.fm. Note that submission will start with the next track, not the current one.
If you want to enable submission of tracks by default, put this into your .emacs.
(emms-lastfm-activate)23.2 Last.fm radio
On http://www.last.fm you'll find lots of links referencing last.fm radio stations like lastfm://artist/Metallica/fans. You can listen to them using these functions.
— Function: emms-lastfm-radio lastfm-url
Starts playing the stream referenced by lastfm-url. When run interactively you will be prompted for a last.fm URL.
You can also insert Last.fm streams into playlists (or use emms-streams.el to listen to them) by activating the player as follows.
(add-to-list 'emms-player-list 'emms-player-lastfm-radio)To add a Last.fm stream into the current playlist, do the following: M-x emms-add-lastfm RET lastfm://rest-of-url RET. To directly start playing use emms-play-lastfm.
To read more about the concept of the “current” playlist See Playlists. To add a last.fm stream to the playlist buffer that's currently browsed (which might not be the “current” playlist), use emms-insert-lastfm instead.
For your convenience there are some functions which let you choose a common radio station without having to remember or type its last.fm URL.
— Function: emms-lastfm-radio-similar-artists artist
Starts playing the similarlyrics still goes on, thus make music and lyrics asynchronical.
One possible solution is to pause EMMS when these processes are running. e.g., for Gnus, try the following:
(defadvice gnus-group-get-new-news (around pause-emms) "Pause emms while Gnus is fetching mails or news." (if emms-player-playing-p (progn (emms-pause) ad-do-it (emms-pause)) ad-do-it)) (ad-activate 'gnus-group-get-new-news)22 Volume
We can use the `emms-volume' package, as provided by the emms-volume.el file, to manipulate the volume.
— User Option: emms-volume-change-amount
The amount to use when raising or lowering the volume using the emms-volume interface.
This should be a positive integer.
If you feel like binding those two functions to global keys — don't do it or you'll miss the convenience of `emms-volume-minor-mode'. Instead, bind the following two commands to some keys that you like.
— Function: emms-volume-mode-plus
Raise volume and enable or extend the `emms-volume-minor-mode' timeout.
— Function: emms-volume-mode-minus
Lower volume and enable or extend the `emms-volume-minor-mode' timeout.
Example:
(global-set-key (kbd "C-c +") 'emms-volume-mode-plus) (global-set-key (kbd "C-c -") 'emms-volume-mode-minus)Whenever you use one of these keys or call these functions with M-x, Emms will be put into `emms-volume-minor-mode' for a short period defined by `emms-volume-mode-timeout'.
— User Option: emms-volume-mode-timeout
The timeout in amount of seconds used by `emms-volume-minor-mode'.
In this interval you can raise/lower the volume simply by pressing + or -, which will also reset the timer to its initial value. So instead of pressing C-c + six times to increase volume by six steps of
emms-volume-change-amount, you would simply type C-c + + + + + +.23 Last.fm
Currently the `emms-lastfm' package provided by the file emms-lastfm.el offers the two most important last.fm services.
- It can submit informations of tracks (artist, title, album) you listen to to last.fm to enhance your music profile.
- You can listen to the Last.fm radio. Those are the streams beginning with lastfm://.
For both services you need a last.fm account and you have to set up two variables.
To set them in your .emacs add something like this.
(setq emms-lastfm-username "my-user-name" emms-lastfm-password "very-secret!")You can edit them with the `customize' interface, too.
23.1 Submitting track informations
These functions enable/disable submission of track informations to last.fm.
— Function: emms-lastfm-enable
Start submitting to last.fm. Note that submission will start with the next track, not the current one.
If you want to enable submission of tracks by default, put this into your .emacs.
(emms-lastfm-activate)23.2 Last.fm radio
On http://www.last.fm you'll find lots of links referencing last.fm radio stations like lastfm://artist/Metallica/fans. You can listen to them using these functions.
— Function: emms-lastfm-radio lastfm-url
Starts playing the stream referenced by lastfm-url. When run interactively you will be prompted for a last.fm URL.
You can also insert Last.fm streams into playlists (or use emms-streams.el to listen to them) by activating the player as follows.
(add-to-list 'emms-player-list 'emms-player-lastfm-radio)To add a Last.fm stream into the current playlist, do the following: M-x emms-add-lastfm RET lastfm://rest-of-url RET. To directly start playing use emms-play-lastfm.
To read more about the concept of the “current” playlist See Playlists. To add a last.fm stream to the playlist buffer that's currently browsed (which might not be the “current” playlist), use emms-insert-lastfm instead.
For your convenience there are some functions which let you choose a common radio station without having to remember or type its last.fm URL.
— Function: emms-lastfm-radio-similar-artists artist
Starts playing the similarlyrics still goes on, thus make music and lyrics asynchronical.
One possible solution is to pause EMMS when these processes are running. e.g., for Gnus, try the following:
(defadvice gnus-group-get-new-news (around pause-emms) "Pause emms while Gnus is fetching mails or news." (if emms-player-playing-p (progn (emms-pause) ad-do-it (emms-pause)) ad-do-it)) (ad-activate 'gnus-group-get-new-news)22 Volume
We can use the `emms-volume' package, as provided by the emms-volume.el file, to manipulate the volume.
— User Option: emms-volume-change-amount
The amount to use when raising or lowering the volume using the emms-volume interface.
This should be a positive integer.
If you feel like binding those two functions to global keys — don't do it or you'll miss the convenience of `emms-volume-minor-mode'. Instead, bind the following two commands to some keys that you like.
— Function: emms-volume-mode-plus
Raise volume and enable or extend the `emms-volume-minor-mode' timeout.
— Function: emms-volume-mode-minus
Lower volume and enable or extend the `emms-volume-minor-mode' timeout.
Example:
(global-set-key (kbd "C-c +") 'emms-volume-mode-plus) (global-set-key (kbd "C-c -") 'emms-volume-mode-minus)Whenever you use one of these keys or call these functions with M-x, Emms will be put into `emms-volume-minor-mode' for a short period defined by `emms-volume-mode-timeout'.
— User Option: emms-volume-mode-timeout
The timeout in amount of seconds used by `emms-volume-minor-mode'.
In this interval you can raise/lower the volume simply by pressing + or -, which will also reset the timer to its initial value. So instead of pressing C-c + six times to increase volume by six steps of
emms-volume-change-amount, you would simply type C-c + + + + + +.23 Last.fm
Currently the `emms-lastfm' package provided by the file emms-lastfm.el offers the two most important last.fm services.
- It can submit informations of tracks (artist, title, album) you listen to to last.fm to enhance your music profile.
- You can listen to the Last.fm radio. Those are the streams beginning with lastfm://.
For both services you need a last.fm account and you have to set up two variables.
To set them in your .emacs add something like this.
(setq emms-lastfm-username "my-user-name" emms-lastfm-password "very-secret!")You can edit them with the `customize' interface, too.
23.1 Submitting track informations
These functions enable/disable submission of track informations to last.fm.
— Function: emms-lastfm-enable
Start submitting to last.fm. Note that submission will start with the next track, not the current one.
If you want to enable submission of tracks by default, put this into your .emacs.
(emms-lastfm-activate)23.2 Last.fm radio
On http://www.last.fm you'll find lots of links referencing last.fm radio stations like lastfm://artist/Metallica/fans. You can listen to them using these functions.
— Function: emms-lastfm-radio lastfm-url
Starts playing the stream referenced by lastfm-url. When run interactively you will be prompted for a last.fm URL.
You can also insert Last.fm streams into playlists (or use emms-streams.el to listen to them) by activating the player as follows.
(add-to-list 'emms-player-list 'emms-player-lastfm-radio)To add a Last.fm stream into the current playlist, do the following: M-x emms-add-lastfm RET lastfm://rest-of-url RET. To directly start playing use emms-play-lastfm.
To read more about the concept of the “current” playlist See Playlists. To add a last.fm stream to the playlist buffer that's currently browsed (which might not be the “current” playlist), use emms-insert-lastfm instead.
For your convenience there are some functions which let you choose a common radio station without having to remember or type its last.fm URL.
— Function: emms-lastfm-radio-similar-artists artist
Starts playing the similarlyrics still goes on, thus make music and lyrics asynchronical.
One possible solution is to pause EMMS when these processes are running. e.g., for Gnus, try the following:
(defadvice gnus-group-get-new-news (around pause-emms) "Pause emms while Gnus is fetching mails or news." (if emms-player-playing-p (progn (emms-pause) ad-do-it (emms-pause)) ad-do-it)) (ad-activate 'gnus-group-get-new-news)22 Volume
We can use the `emms-volume' package, as provided by the emms-volume.el file, to manipulate the volume.
— User Option: emms-volume-change-amount
The amount to use when raising or lowering the volume using the emms-volume interface.
This should be a positive integer.
If you feel like binding those two functions to global keys — don't do it or you'll miss the convenience of `emms-volume-minor-mode'. Instead, bind the following two commands to some keys that you like.
— Function: emms-volume-mode-plus
Raise volume and enable or extend the `emms-volume-minor-mode' timeout.
— Function: emms-volume-mode-minus
Lower volume and enable or extend the `emms-volume-minor-mode' timeout.
Example:
(global-set-key (kbd "C-c +") 'emms-volume-mode-plus) (global-set-key (kbd "C-c -") 'emms-volume-mode-minus)Whenever you use one of these keys or call these functions with M-x, Emms will be put into `emms-volume-minor-mode' for a short period defined by `emms-volume-mode-timeout'.
— User Option: emms-volume-mode-timeout
The timeout in amount of seconds used by `emms-volume-minor-mode'.
In this interval you can raise/lower the volume simply by pressing + or -, which will also reset the timer to its initial value. So instead of pressing C-c + six times to increase volume by six steps of
emms-volume-change-amount, you would simply type C-c + + + + + +.23 Last.fm
Currently the `emms-lastfm' package provided by the file emms-lastfm.el offers the two most important last.fm services.
- It can submit informations of tracks (artist, title, album) you listen to to last.fm to enhance your music profile.
- You can listen to the Last.fm radio. Those are the streams beginning with lastfm://.
For both services you need a last.fm account and you have to set up two variables.
To set them in your .emacs add something like this.
(setq emms-lastfm-username "my-user-name" emms-lastfm-password "very-secret!")You can edit them with the `customize' interface, too.
23.1 Submitting track informations
These functions enable/disable submission of track informations to last.fm.
— Function: emms-lastfm-enable
Start submitting to last.fm. Note that submission will start with the next track, not the current one.
If you want to enable submission of tracks by default, put this into your .emacs.
(emms-lastfm-activate)23.2 Last.fm radio
On http://www.last.fm you'll find lots of links referencing last.fm radio stations like lastfm://artist/Metallica/fans. You can listen to them using these functions.
— Function: emms-lastfm-radio lastfm-url
Starts playing the stream referenced by lastfm-url. When run interactively you will be prompted for a last.fm URL.
You can also insert Last.fm streams into playlists (or use emms-streams.el to listen to them) by activating the player as follows.
(add-to-list 'emms-player-list 'emms-player-lastfm-radio)To add a Last.fm stream into the current playlist, do the following: M-x emms-add-lastfm RET lastfm://rest-of-url RET. To directly start playing use emms-play-lastfm.
To read more about the concept of the “current” playlist See Playlists. To add a last.fm stream to the playlist buffer that's currently browsed (which might not be the “current” playlist), use emms-insert-lastfm instead.
For your convenience there are some functions which let you choose a common radio station without having to remember or type its last.fm URL.
— Function: emms-lastfm-radio-similar-artists artist
Starts playing the similarlyrics still goes on, thus make music and lyrics asynchronical.
One possible solution is to pause EMMS when these processes are running. e.g., for Gnus, try the following:
(defadvice gnus-group-get-new-news (around pause-emms) "Pause emms while Gnus is fetching mails or news." (if emms-player-playing-p (progn (emms-pause) ad-do-it (emms-pause)) ad-do-it)) (ad-activate 'gnus-group-get-new-news)22 Volume
We can use the `emms-volume' package, as provided by the emms-volume.el file, to manipulate the volume.
— User Option: emms-volume-change-amount
The amount to use when raising or lowering the volume using the emms-volume interface.
This should be a positive integer.
If you feel like binding those two functions to global keys — don't do it or you'll miss the convenience of `emms-volume-minor-mode'. Instead, bind the following two commands to some keys that you like.
— Function: emms-volume-mode-plus
Raise volume and enable or extend the `emms-volume-minor-mode' timeout.
— Function: emms-volume-mode-minus
Lower volume and enable or extend the `emms-volume-minor-mode' timeout.
Example:
(global-set-key (kbd "C-c +") 'emms-volume-mode-plus) (global-set-key (kbd "C-c -") 'emms-volume-mode-minus)Whenever you use one of these keys or call these functions with M-x, Emms will be put into `emms-volume-minor-mode' for a short period defined by `emms-volume-mode-timeout'.
— User Option: emms-volume-mode-timeout
The timeout in amount of seconds used by `emms-volume-minor-mode'.
In this interval you can raise/lower the volume simply by pressing + or -, which will also reset the timer to its initial value. So instead of pressing C-c + six times to increase volume by six steps of
emms-volume-change-amount, you would simply type C-c + + + + + +.23 Last.fm
Currently the `emms-lastfm' package provided by the file emms-lastfm.el offers the two most important last.fm services.
- It can submit informations of tracks (artist, title, album) you listen to to last.fm to enhance your music profile.
- You can listen to the Last.fm radio. Those are the streams beginning with lastfm://.
For both services you need a last.fm account and you have to set up two variables.
To set them in your .emacs add something like this.
(setq emms-lastfm-username "my-user-name" emms-lastfm-password "very-secret!")You can edit them with the `customize' interface, too.
23.1 Submitting track informations
These functions enable/disable submission of track informations to last.fm.
— Function: emms-lastfm-enable
Start submitting to last.fm. Note that submission will start with the next track, not the current one.
If you want to enable submission of tracks by default, put this into your .emacs.
(emms-lastfm-activate)23.2 Last.fm radio
On http://www.last.fm you'll find lots of links referencing last.fm radio stations like lastfm://artist/Metallica/fans. You can listen to them using these functions.
— Function: emms-lastfm-radio lastfm-url
Starts playing the stream referenced by lastfm-url. When run interactively you will be prompted for a last.fm URL.
You can also insert Last.fm streams into playlists (or use emms-streams.el to listen to them) by activating the player as follows.
(add-to-list 'emms-player-list 'emms-player-lastfm-radio)To add a Last.fm stream into the current playlist, do the following: M-x emms-add-lastfm RET lastfm://rest-of-url RET. To directly start playing use emms-play-lastfm.
To read more about the concept of the “current” playlist See Playlists. To add a last.fm stream to the playlist buffer that's currently browsed (which might not be the “current” playlist), use emms-insert-lastfm instead.
For your convenience there are some functions which let you choose a common radio station without having to remember or type its last.fm URL.
— Function: emms-lastfm-radio-similar-artists artist
Starts playing the similarlyrics still goes on, thus make music and lyrics asynchronical.
One possible solution is to pause EMMS when these processes are running. e.g., for Gnus, try the following:
(defadvice gnus-group-get-new-news (around pause-emms) "Pause emms while Gnus is fetching mails or news." (if emms-player-playing-p (progn (emms-pause) ad-do-it (emms-pause)) ad-do-it)) (ad-activate 'gnus-group-get-new-news)22 Volume
We can use the `emms-volume' package, as provided by the emms-volume.el file, to manipulate the volume.
— User Option: emms-volume-change-amount
The amount to use when raising or lowering the volume using the emms-volume interface.
This should be a positive integer.
If you feel like binding those two functions to global keys — don't do it or you'll miss the convenience of `emms-volume-minor-mode'. Instead, bind the following two commands to some keys that you like.
— Function: emms-volume-mode-plus
Raise volume and enable or extend the `emms-volume-minor-mode' timeout.
— Function: emms-volume-mode-minus
Lower volume and enable or extend the `emms-volume-minor-mode' timeout.
Example:
(global-set-key (kbd "C-c +") 'emms-volume-mode-plus) (global-set-key (kbd "C-c -") 'emms-volume-mode-minus)Whenever you use one of these keys or call these functions with M-x, Emms will be put into `emms-volume-minor-mode' for a short period defined by `emms-volume-mode-timeout'.
— User Option: emms-volume-mode-timeout
The timeout in amount of seconds used by `emms-volume-minor-mode'.
In this interval you can raise/lower the volume simply by pressing + or -, which will also reset the timer to its initial value. So instead of pressing C-c + six times to increase volume by six steps of
emms-volume-change-amount, you would simply type C-c + + + + + +.23 Last.fm
Currently the `emms-lastfm' package provided by the file emms-lastfm.el offers the two most important last.fm services.
- It can submit informations of tracks (artist, title, album) you listen to to last.fm to enhance your music profile.
- You can listen to the Last.fm radio. Those are the streams beginning with lastfm://.
For both services you need a last.fm account and you have to set up two variables.
To set them in your .emacs add something like this.
(setq emms-lastfm-username "my-user-name" emms-lastfm-password "very-secret!")You can edit them with the `customize' interface, too.
23.1 Submitting track informations
These functions enable/disable submission of track informations to last.fm.
— Function: emms-lastf