aboutsummaryrefslogtreecommitdiff
path: root/emms-browser.el
diff options
context:
space:
mode:
authorDamien Elmes <emms@repose.cx>2006-07-26 18:17:00 +0000
committerDamien Elmes <emms@repose.cx>2006-07-26 18:17:00 +0000
commitd84b90a32fc453e90eb1d6b8d8b5f207c9843859 (patch)
tree2748adc0b0f78bc078ca49f0b97a58b2675ff0e0 /emms-browser.el
parent940d0784c8d5faed2ded6799bfc9dc6499106aba (diff)
browser: add some documentation related to singles and filters
darcs-hash:20060726181758-4e3e3-ea11e892b1478cd818c7d774fd8957093a971511.gz
Diffstat (limited to 'emms-browser.el')
-rw-r--r--emms-browser.el22
1 files changed, 21 insertions, 1 deletions
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)