3.4 The Current Track

mpdmacs-mode does offer a few, small, user-interface elements beyond commands & notifications.

Command: mpdmacs-show-current-song

Display information about the current song. This command will display the information in a dedicated buffer and display it. mpdmacs-show-current-song-hook is run in the buffer before display.

User Option: mpdmacs-current-song-buffer

The name of the buffer to use for current song information. The default value is “*Current Song*”.

User Option: defvar mpdmacs-show-current-song-hook

Normal hook run before mpdmacs-show-current-song returns. The hook will be invoked in the current song buffer.

In addition, when mpdmacs-mode is enabled, the current track will be displayed in the Emacs mode line. This can be customized or entirely disabled by customizing:

User Option: mpdmacs-mode-line-update-function

Function that will be invoked on current track change; if nil the mode line will not be updated.