Coder Social home page Coder Social logo

emms-state.el's Introduction

https://img.shields.io/badge/license-GPL_3-orange.svg http://melpa.org/packages/emms-state-badge.svg http://stable.melpa.org/packages/emms-state-badge.svg

About

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:

  1. emms-state-mode displays an additional symbol (⏵/⏸/⏹ by default) to show if the current track is being played/paused/stopped.
  2. If a track is more than an hour long, its playing time would be displayed in a form H:MM:SS instead of MM:SS.

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).

Installation

Automatic

MELPA

This package can be installed from MELPA (with M-x package-install or M-x list-packages).

Quelpa

The package can be installed using quelpa like this:

(quelpa '(emms-state :fetcher github :repo "alezost/emms-state.el"))

Manual

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)

Usage

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))

emms-state.el's People

Contributors

alezost avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

emms-state.el's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.