Jorgen Schaefer <[EMAIL PROTECTED]> writes: > Lucas Bonnet <[EMAIL PROTECTED]> 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 _______________________________________________ Emms-help mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emms-help
