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

爷,独闯天下 提交于 2019-11-30 16:40:12

问题


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.)


回答1:


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.




回答2:


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)



回答3:


This works for me in emacs 23 on linux :

(setq split-width-threshold most-positive-fixnum)


来源:https://stackoverflow.com/questions/966191/how-can-i-get-the-compilation-buffer-on-the-bottom-rather-than-on-the-right-in-e

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!