diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-08-19 17:11:00 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-08-19 17:11:00 +0200 |
commit | cd00fb5e2a813a71969d1370bb05e1c533107045 (patch) | |
tree | e813129d60a741ed67fe949df6d32a3970fc11d2 | |
parent | 04f723dec944eaa7b5e99373840a8bf920ba5fdd (diff) | |
download | emacs-cd00fb5e2a813a71969d1370bb05e1c533107045.tar.gz |
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).
-rw-r--r-- | lisp/ibuf-ext.el | 11 |
1 files changed, 11 insertions, 0 deletions
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 |