gpt4 book ai didi

emacs - Emacs 23 中弹出到缓冲区的水平分割?

转载 作者:行者123 更新时间:2023-12-04 16:50:04 26 4
gpt4 key购买 nike

我有一些脚本经常使用 pop-to-buffer 函数。它曾经水平分割窗口,但现在在 Emacs 23 中它垂直分割窗口。我已经挖掘了一些 elisp 代码,但它并没有跳出来 - 我该如何更改 Emacs 23 的这种行为以再次水平拆分?

最佳答案

它列在 Emacs 的新闻 ( C-h N ) 中:

*** display-buffer' tries to be smarter when splitting windows. The
new option
split-window-preferred-function' lets you specify your own function to pop up new windows. Its default value split-window-sensibly' can split a
window either vertically or
horizontally, whichever seems more
suitable in the current configuration.
You can tune the behavior of
split-window-sensibly by customizing
split-height-threshold' and the new option `split-width-threshold'. Both options now take the value nil to inhibit splitting in one direction. Setting split-width-threshold to nil inhibits horizontal splitting and gets you the behavior of Emacs 22 in this respect. In any case, display-buffer may now split the largest window vertically even when it is not as wide as the containing frame.



我想你想要的是:
(setq split-width-threshold nil)

(但我认为您使用的垂直与水平分割与 Emacs 术语相反( 对我来说也是违反直觉的))

关于emacs - Emacs 23 中弹出到缓冲区的水平分割?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1455677/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com