Contents

Emacs: Setting up Emacs Multimedia System (Emms)

Contents

Installation

  • Update packages via M-x package-refresh-contents.
  • Install Emms via M-x package-install emms.
  • Install mplayer via sudo apt install mplayer.

Configuration

  • Add to configuration file:

    ;; ;; emms ;; (require ’emms-player-simple) (require ’emms-source-file) (require ’emms-source-playlist) (require ’emms-player-mplayer) (setq emms-player-list ‘(emms-player-mpg321 emms-player-ogg123 emms-player-mplayer))

  • Validate configuration buffer via M-x eval-buffer.

Without proper configuration you will get messages like:

  • progn: emms-player-list empty
  • Symbol’s value as variable is void: emms-player-mplayer
  • Don’t know how to play track

Check

  • Play track via M-x emms-play-file and select file to play.

Important commands

  • emms-play-file: Plays a file.
  • emms-play-directory: Play all files of a directory.
  • emms-play-directory-tree: Plays all files of a directory and its

subdirectories.

  • emms-toggle-repeat-track: Sets repeat of current track on/off.
  • emms-volume-lower: Lowers volume.
  • emms-volume-raise: Raises volume.

References