I would like to catch popup buffers with
display-buffer-alist by their major-mode instead of matching the buffer name with a regexp.
For example I have dired-mode buffers that popup and I can't come up with proper regexp that would only match dired-mode buffer names.
It would be nice if I could instead do something like this:
(setq display-buffer-alist '((string= major-mode "dired-mode") (display-buffer-same-window)))