emms-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emms-help] Re: emms mode line format question


From: Jorgen Schaefer
Subject: Re: [emms-help] Re: emms mode line format question
Date: Mon, 10 Jul 2006 13:08:51 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Lucas Bonnet <address@hidden> writes:

>> However, without using id3 info, how to show just the file name
>> without the path? I found it takes up too much space in the mode
>> line. I think it will be a nice feature to have.
>
> Yes, you can, forcer does this, he will give you his config if you ask
> him nicely :)

(setq emms-track-description-function 'fc-emms-track-description)

(defun fc-emms-track-description (track)
  "Return a nice description of TRACK."
  (let ((desc (emms-track-simple-description track)))
    (if (string-match "^/home/forcer/snd/\\(musik/\\(artists/\\)?\\)?\\(.*\\)" 
desc)
        (match-string 3 desc)
      desc)))

The result of `emms-track-description-function' is used as %s in
`emms-mode-line-format', which should be mentioned in that
docstring.

Regards,
        -- Jorgen

-- 
((email . "address@hidden") (www . "http://www.forcix.cx/";)
 (gpg   . "1024D/028AF63C")   (irc . "nick forcer on IRCnet"))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]