From cd00fb5e2a813a71969d1370bb05e1c533107045 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Thu, 19 Aug 2021 17:11:00 +0200 Subject: [PATCH] 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 1dc8acbe1f3..c73f899656d 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 -- 2.39.2