[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master cd00fb5 2/2: Add ibuffer-saved-filter-groups example to the doc s
From: |
Lars Ingebrigtsen |
Subject: |
master cd00fb5 2/2: Add ibuffer-saved-filter-groups example to the doc string |
Date: |
Thu, 19 Aug 2021 11:11:08 -0400 (EDT) |
branch: master
commit cd00fb5e2a813a71969d1370bb05e1c533107045
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Add ibuffer-saved-filter-groups example to the doc string
* lisp/ibuf-ext.el (ibuffer-saved-filter-groups): Add an example
for this complicated syntax (bug#18694).
---
lisp/ibuf-ext.el | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el
index 1dc8acb..c73f899 100644
--- a/lisp/ibuf-ext.el
+++ b/lisp/ibuf-ext.el
@@ -332,6 +332,17 @@ where NAME is a unique but arbitrary name and
FILTER-GROUP-LIST
is a list of filter groups with the same structure as
allowed for `ibuffer-filter-groups'.
+For instance:
+
+ (setq ibuffer-saved-filter-groups
+ \\='((\"Home\"
+ (\"Modified\" (predicate buffer-modified-p (current-buffer)))
+ (\"Helm\" (name . \"\*helm.+\"))
+ (\"Dev\" (or (filename . \".+\.css$\")
+ (filename . \".+\.html?$\")
+ (mode . android-mode)
+ (mode . clojure-mode))))))
+
See also the functions `ibuffer-save-filter-groups' and
`ibuffer-switch-to-saved-filter-groups' for saving and switching
between sets of filter groups, and the variable