Display EMMS track info in the mode line
Alex Kost 7793030022 Update version (0.2) | 8 lat temu | |
---|---|---|
.gitignore | 8 lat temu | |
README.org | 8 lat temu | |
emms-state.el | 8 lat temu |
file:https://img.shields.io/badge/license-GPL_3-orange.svg file:http://melpa.org/packages/emms-state-badge.svg file:http://stable.melpa.org/packages/emms-state-badge.svg
This package provides a minor mode (emms-state-mode
) for displaying
description and playing time of the current track played by EMMS in the
mode line. It is intended to be used as a substitution for
=emms-playing-time= and emms-mode-line
modes.
There are 2 main differences between emms-state-mode
and
=emms-playing-time= + emms-mode-line
modes:
emms-state-mode
displays an additional symbol (⏵/⏸/⏹ by default)For example, emms-state-mode
will display a paused track like this:
⏸ 1:42:37(3:31:05) John Smith - My very long and boring song
While with emms-playing-time
+ emms-mode-line
modes, it will be:
John Smith - My very long and boring song 102:37/211:05
And of course the default displayed string may be customized (see =emms-state-mode-line-string= variable).
This package can be installed from MELPA (with M-x package-install
or
=M-x list-packages=).
The package can be installed using quelpa like this:
(quelpa '(emms-state :fetcher github :repo "alezost/emms-state.el"))
For the manual installation, clone the repo, add the directory to =load-path= and add an autoload for the minor mode:
(add-to-list 'load-path "/path/to/emms-state-dir")
(autoload 'emms-state-mode "emms-state" nil t)
Simply M-x emms-state-mode
, but make sure that emms-mode-line
mode
is disabled to avoid double title in your mode-line.
To enable emms-state-mode
automatically, you may use:
(eval-after-load 'emms '(emms-state-mode))