summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-02-11 16:28:51 +0800
committerJSDurand <mmemmew@gmail.com>2022-02-11 16:28:51 +0800
commit6fefcdfc0da2bae277997c54e50da6ba021fefa9 (patch)
tree648ac924ae27f27219e5b0f545cfacff7d7d2520
parent435c95393459d0c7825a4431f0ebcec6898ba16b (diff)
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.
-rw-r--r--ibuffer.el5
1 files changed, 5 insertions, 0 deletions
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)))