I want to try a new workflow where split windows only happen if I request them, otherwise Emacs simply changes windows. I tried putting this command in my init.el
:
(setq pop-up-windows nil)
And it seems to work mostly: if I use a help command, launch a compilation, use M-x occur
, etc. Emacs correctly changes windows. However, in the *compilation*
buffer, if I press RET
on a line, Emacs splits the frame into two windows. Does anyone know what other configuration I need to make sure that Emacs properly switches?
window.el
, including, but not limited todisplay-buffer
. Doing that, however, will put you in for a world of future problems because most library authors go through a lot of planning in terms of which windows to display and ones to dedicate, and restoring prior window configurations. You're better off, in my opinion, only touching what specifically needs changing based on your personal preferences. In other words, use a scalpel or a laser knife instead of a machete (or Thor's War Hammer).