[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mon, 05 Jun 2006 13:23:38 +0200
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)
I started using emms2 for 2 two weeks now and I find it very, very
My customizations are mostly borrowed from Michael Olson emms-init.el
(thanks to him for sharing his setup) but I ended up with a function I
find useful. Maybe it is of some interest here.
;; Jump to the directory containing the track at point
(defun emms-playlist-dired-jump (&optional other-window)
"Jump to dired buffer corresponding to current track.
If called with an argument, open the dired buffer on another window."
(let* ((file (emms-track-get (emms-playlist-track-at) 'name))
(dir (if file (file-name-directory file) default-directory)))
(if file (dired-goto-file file))))
"If art interprets our dreams, the computer executes them in the guise
of programs!" -- Alan J. Perils
|[Prev in Thread]
||[Next in Thread]|
- [emms-help] emms-playlist-dired-jump,
Andrea Russo <=