diff options
author | JSDurand <mmemmew@gmail.com> | 2023-02-21 16:25:05 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2023-02-21 16:25:05 +0800 |
commit | 5e89b8f8366902fb6aa41c672126b0e67104a25a (patch) | |
tree | 82b924cb9eac7319fa55fbcf1019b890f0e4801c | |
parent | 5898797a1ad1cd5d886cc1351486baabdfa5742a (diff) |
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.
-rw-r--r-- | ibuffer.el | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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." |