Is there a straightforward way (via defadvice or otherwise) to change the focus behavior of buffers such as help, grep, occur? In particular, I would like to modify the behavior of M-x occur to take me to the *Occur* buffer directly. Some modes (e.g. ESS) provide finer-grained control over the display of such “temporary” buffers, but is there a general strategy for buffers where such controls aren’t provided?
Is there a straightforward way (via defadvice or otherwise) to change the focus behavior
Share
A general approach, as an alternative, is to use
special-display-regexpsorspecial-display-buffer-namesto make such buffersspecial-display, which puts them in a separate frame (and selects it). E.g.: