I like to have my emacs set up as one full-screen frame with two side-by-side windows at all time. To do this, I've used this code to force emacs not to split windows arbitrarily:
(defun never-split-a-window nil)
(setq split-window-preferred-function 'never-split-a-window)
This works great, and importantly, I can still use popwin
to display temporary popup windows as splits. Other packages still successfully split as well, for example Helm. And a few weeks ago, so did Magit's popups. It was nice to have the main Magit buffer occupy one whole window, but then have popups split the window (temporarily).
Now, since some changes to Magit to consolidate window handling, I get my Magit popups in the opposite window rather than as a split. Is there any easy way to get back the splitting behavior, without allowing Emacs to go nuts and split things willy-nilly (as it did before changing split-window-preferred-function
)?