Take the 2-minute tour ×  Is there any way to tell iswitchb to
ignore buffers based on mode not string? I would like to exclude
the buffers opened in dired mode which are very often the most
numerous and it's hard to find opened files in minibuffer among
them. Any help on this would be appreciated.  share|improve this
question add comment  2 Answers  up vote 1 down vote accepted
You can add a custom function to iswitchb-buffer-ignore to do
this. There is actually an example in iswitchb.el -- based on
that, this will do the trick:  (defun iswitchb-ignore-dired-mode
(name)     "Ignore all dired mode buffers."     (with-current-
buffer name         (derived-mode-p 'dired-mode)))  (setq
iswitchb-buffer-ignore '("^ " iswitchb-ignore-dired-mode))  This
preserves the default behavior of ignoring buffer names that
begin with a space, and adds the filter for dired-mode buffers.
share|improve this answer add comment  Based on a similar
example in the iswitchb source code:  (defun iswitchb-ignore-
dired-buffers (buffer)