我安装了 Emacs 23 并发现编译缓冲区(使用 Mx 编译时)出现在与 Emacs 22 中不同的位置。当前打开的缓冲区出现在左侧,编译缓冲区出现在右侧。如何恢复到 Emacs 22 的行为,即在顶部打开当前缓冲区,在底部打开编译缓冲区?
(水平分割屏幕也是缓冲区列表(Mx switch-to-buffer <tab>)缓冲区的情况。)
它可能是新的split-window-preferred-function
变量和split-window-sensibly
函数。Emacs 现在尝试根据窗口大小(我假设您有一个宽窗口)来确定它是应该垂直分割还是水平分割。尝试将split-width-threshold
变量设置为nil
.
以下对我最有效:
;; Split windows in Emacs 22 compatible way
(setq split-height-threshold nil)
(setq split-width-threshold most-positive-fixnum)
这适用于我在 linux 上的 emacs 23 中:
(setq split-width-threshold most-positive-fixnum)