[EMMS] Require emms before showing track status

This commit is contained in:
Daniel - 2019-06-10 11:35:43 +02:00
parent c309cf7917
commit 96162d3eaf
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ When NO-NEWLINE is non-nil, do not insert a newline after the track."
(defun db/emms-track-status ()
"Return string displaying status of currently played track."
(require 'emms)
(if emms-player-playing-p
(format "%s" (emms-track-description
(emms-playlist-current-selected-track)))