From d84b90a32fc453e90eb1d6b8d8b5f207c9843859 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 26 Jul 2006 18:17:00 +0000 Subject: browser: add some documentation related to singles and filters darcs-hash:20060726181758-4e3e3-ea11e892b1478cd818c7d774fd8957093a971511.gz --- emms-browser.el | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'emms-browser.el') diff --git a/emms-browser.el b/emms-browser.el index 2931720..05c17f1 100644 --- a/emms-browser.el +++ b/emms-browser.el @@ -112,7 +112,8 @@ ;; After executing the above commands, you can use M-x ;; emms-browser-show-all, emms-browser-show-80s, etc to toggle -;; between different collections. +;; between different collections. Alternatively you can use '<' and +;; '>' to cycle through the available filters. ;; The above will set the first-defined filter as the default. You can ;; use any of the filters in emms-browser-filters. @@ -121,6 +122,25 @@ ;; a single track should be filtered. You can write your own filter ;; functions to check the type of a file, etc. +;; Changing display layout +;; ------------------------------------------------------------------- + +;; You can change the way the tree is displayed by modifying +;; `emms-browser-next-mapping-type'. The following code displays +;; artist->track instead of artist->album->track when you switch to +;; the 'singles' filter. + +;; (defadvice emms-browser-next-mapping-type (after no-album (current-mapping)) +;; (when (eq ad-return-value 'info-album) +;; (setq ad-return-value 'info-title))) + +;; (defun toggle-album-display () +;; (if (string= emms-browser-current-filter-name "singles") +;; (ad-activate 'emms-browser-next-mapping-type) +;; (ad-deactivate 'emms-browser-next-mapping-type))) + +;; (add-hook 'emms-browser-filter-changed-hook 'toggle-album-display) + ;;; Code: (require 'emms) -- cgit v1.2.3