Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I want to hide all Dired buffers as major mode in Ibuffer.
(add-to-list 'ibuffer-never-show-predicates "magit*")
ibuffer-never-show-predicates accepts a regexp and a function.
How can I hide all Dired buffers in Ibuffer?
Yes, you can write a predicate function for that:
(defun my-dired-mode-buffer-p (buf)
"Non-nil if buffer BUF is in `dired-mode'."
(add-to-list 'ibuffer-never-show-predicates #'my-dired-mode-buffer-p))
Required, but never shown