How can I get the compilation buffer on the bottom rather than on the right in Emacs 23?
Asked Answered
D

3

14

I've installed Emacs 23 and have found that the compilation buffer (when using M-x compile) appears in a different position than it did in Emacs 22. The currently open buffer appears on the left and the compilation buffer on the right. How to I revert to the Emacs 22 behavior of having the current buffer open on the top and the compilation buffer on the bottom?

(Splitting the screen horizontally also is the case for the buffer list (M-x switch-to-buffer <tab>) buffer as well.)

Dendriform answered 8/6, 2009 at 18:14 Comment(0)
Z
21

It's probably the new split-window-preferred-function variable and split-window-sensibly function. Emacs now tries to figure out if it should split vertically or horizontally based on the window size (I assume you have a wide window). Try setting the split-width-threshold variable to nil.

Zoraidazorana answered 8/6, 2009 at 19:39 Comment(1)
I only would like this for *compilation*.Iolite
B
4

The following worked best for me:

;; Split windows in Emacs 22 compatible way
(setq split-height-threshold nil)
(setq split-width-threshold most-positive-fixnum)
Blairblaire answered 20/8, 2010 at 14:7 Comment(0)
C
1

This works for me in emacs 23 on linux :

(setq split-width-threshold most-positive-fixnum)
Cythiacyto answered 8/6, 2009 at 20:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.