When I perform M-x compile or get an elisp compilation error, my emacs splits the window vertically, and displays the compile output/error message in the new window. I prefer to work with my buffers in a full screen window, because the vertically split window is too narrow for me. Can I tell emacs to not split the window and do a M-x switch-buffer to the compilation/error buffer?
Edit: Trey's suggestion works for compilation. Is there a way to set it for all the commands which split the window? The three I have in mind are elisp compiling, M-x apropos and M-x occur.
Try this:
(setq compilation-window-height 1000)
You could get fancy and actually calculate the number of lines of text in the frame... (/ (frame-pixel-height) (frame-char-height))
, but that seems silly.
Io control how Emacs generally displays buffers, you can configure the variable same-window-regexps
to match all buffer names, and then all commands that display buffers using display-buffer
will use the same window:
(setq same-window-regexps '("."))
See Choosing a Window for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With