【问题标题】:"open buffer here" in emacs (ido-mode)emacs 中的“在此处打开缓冲区”(ido 模式)
【发布时间】:2010-02-24 09:19:30
【问题描述】:

我在 ido 模式下使用 emacs。 When selecting a desired buffer, instead of the buffer showing up in the current window I will be taken to a separate frame and window in which the buffer is already open.有没有办法修改(关闭)这种行为?这似乎是我对 (pop-to-buffer) 的期望,但在 ido.el 中我找不到这样的参考。我认为这是一个 ido 模式“功能”,因为当我使用 -q 选项启动 emacs 时它不会发生。非常感谢...

【问题讨论】:

    标签: emacs elisp


    【解决方案1】:

    ido-default-buffer-method 可能是您正在寻找的,它与ido-default-file-method 具有相同的可能值,并引导您寻求它的帮助,即:

    ido-default-file-method is a variable defined in `ido.el'.
    Its value is raise-frame
    
    Documentation:
    How to visit a new file when using `ido-find-file'.
    Possible values:
    `selected-window' Show new file in selected window
    `other-window'    Show new file in another window (same frame)
    `display'     Display file in another window without selecting to it
    `other-frame'     Show new file in another frame
    `maybe-frame'     If a file is visible in another frame, prompt to ask if you
                      you want to see the file in the same window of the current
                      frame or in the other frame
    `raise-frame'     If a file is visible in another frame, raise that
                      frame; otherwise, visit the file in the same window
    

    【讨论】:

    • 在我的情况下 ido-default-buffer-method 似乎是我需要更改的变量,但这让我正确!谢谢~
    猜你喜欢
    • 2014-02-26
    • 1970-01-01
    • 2011-11-10
    • 1970-01-01
    • 2011-03-14
    • 2017-07-28
    • 2010-09-19
    • 1970-01-01
    相关资源
    最近更新 更多