Browse files

Note ability to use ibuffer-vc-generate-filter-groups-by-vc-root dire…

…ctly
  • Loading branch information...
1 parent 268c425 commit 296bf3ce8d772107b57cadaeaba63cc1ccef1cff @purcell committed Dec 21, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 ibuffer-vc.el
View
5 ibuffer-vc.el
@@ -40,6 +40,10 @@
;; (ibuffer-vc-set-filter-groups-by-vc-root)
;; (ibuffer-do-sort-by-alphabetic)))
;;
+;; Alternatively, use `ibuffer-vc-generate-filter-groups-by-vc-root'
+;; to programmatically obtain a list of filter groups that you can
+;; combine with your own custom groups.
+;;
;; To include vc status info in the ibuffer list, add either
;; vc-status-mini or vc-status to `ibuffer-formats':
;;
@@ -114,6 +118,7 @@ file is not under version control"
(ibuffer-awhen (ibuffer-vc-root buf)
(equal qualifier it)))
+;;;###autoload
(defun ibuffer-vc-generate-filter-groups-by-vc-root ()
"Create a set of ibuffer filter groups based on the vc root dirs of buffers"
(let ((roots (ibuffer-remove-duplicates

0 comments on commit 296bf3c

Please sign in to comment.