emms-help
[Top][All Lists]
Advanced

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

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


From: Leon
Subject: [emms-help] Re: emms mode line format question
Date: Mon, 10 Jul 2006 16:42:59 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.51 (gnu/linux)

Jorgen Schaefer <address@hidden> writes:

> 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

Thank you.

-- 
Leon





reply via email to

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