From 6fefcdfc0da2bae277997c54e50da6ba021fefa9 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Fri, 11 Feb 2022 16:28:51 +0800 Subject: ibuffer: add section for rust buffers * ibuffer.el (durand-bongo-set-filter): Add a section for buffers in the rustic-mode or the rust-mode. --- ibuffer.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ibuffer.el b/ibuffer.el index 42c1480..60617cd 100644 --- a/ibuffer.el +++ b/ibuffer.el @@ -343,6 +343,8 @@ derived modes of `ibuffer-mode'."))) found)) ((derived-mode-p 'bongo-playlist-mode 'bongo-library-mode))))) +;;; For directory + ;;;###autoload (define-ibuffer-filter durand-directory "Limit current view to buffers with directory a subdirectory of \ @@ -368,6 +370,9 @@ value of `default-directory' in that buffer." (interactive) (setq ibuffer-filter-groups (list (cons "Bongo" '((durand-bongo))) + (cons "RS" '((or + (mode . rustic-mode) + (mode . rust-mode)))) (cons "C" '((mode . c-mode))) (cons "ELisp" '((mode . emacs-lisp-mode))) (cons "EWW" '((mode . eww-mode))) -- cgit v1.2.3-18-g5258