【问题标题】:How can I get the compilation buffer on the bottom rather than on the right in Emacs 23?如何在 Emacs 23 的底部而不是右侧获取编译缓冲区?
【发布时间】:2010-11-01 06:13:02
【问题描述】:

我安装了 Emacs 23 并发现编译缓冲区(使用 M-x 编译时)出现在与 Emacs 22 中不同的位置。当前打开的缓冲区出现在​​左侧,编译缓冲区出现在​​右侧。如何恢复到 Emacs 22 的行为,即在顶部打开当前缓冲区,在底部打开编译缓冲区?

(水平分割屏幕也适用于缓冲区列表(M-x switch-to-buffer )缓冲区。)

【问题讨论】:

    标签: emacs buffer emacs23


    【解决方案1】:

    以下方法最适合我:

    ;; Split windows in Emacs 22 compatible way
    (setq split-height-threshold nil)
    (setq split-width-threshold most-positive-fixnum)
    

    【讨论】:

      【解决方案2】:

      这适用于我在 linux 上的 emacs 23 中:

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

      【讨论】:

        【解决方案3】:

        这可能是新的split-window-preferred-function 变量和split-window-sensibly 函数。 Emacs 现在尝试根据窗口大小(我假设您有一个宽窗口)来确定它是应该垂直分割还是水平分割。尝试将split-width-threshold 变量设置为nil。

        【讨论】:

        • 我只想要*compilation*。
        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-02-22
        • 2011-11-24
        • 2012-06-18
        相关资源
        最近更新 更多