From 5e89b8f8366902fb6aa41c672126b0e67104a25a Mon Sep 17 00:00:00 2001 From: JSDurand Date: Tue, 21 Feb 2023 16:25:05 +0800 Subject: ibuffer: silence and add TeX section. * ibuffer.el (durand-bongo-set-filter): Add a section for TeX files. (durand-export-buffers-select): Silence ibuffer when exporting. --- ibuffer.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ibuffer.el b/ibuffer.el index e2d7932..4d72bb0 100644 --- a/ibuffer.el +++ b/ibuffer.el @@ -438,6 +438,7 @@ value of `default-directory' in that buffer." (cons "RS" '((or (mode . rustic-mode) (mode . rust-mode)))) + (cons "TeX" '((derived-mode . tex-mode))) (cons "C" '((mode . c-mode))) (cons "ELisp" '((mode . emacs-lisp-mode))) (cons "EWW" '((mode . eww-mode))) @@ -466,7 +467,11 @@ value of `default-directory' in that buffer." (remove-hook 'post-command-hook #'durand-export-buffers-select) (cond ((timerp timer) (cancel-timer timer))) (display-buffer durand-export-buffers-name - (list (list #'display-buffer-same-window)))) + (list (list #'display-buffer-same-window))) + (with-current-buffer durand-export-buffers-name + (advice-add #'message :override #'ignore) + (ibuffer-update nil) + (advice-remove #'message #'ignore))) (defun durand-export-buffers () "Export buffers into an IBuffer buffer." -- cgit v1.2.3-18-g5258