代码之家  ›  专栏  ›  技术社区  ›  hatmatrix

Emacs(IDO模式)中的“此处打开缓冲区”

  •  11
  • hatmatrix  · 技术社区  · 14 年前

    我在IDO模式下使用Emacs。当选择一个所需的缓冲区时,我将被带到一个单独的框架和窗口,在该框架和窗口中缓冲区已经打开。是否有修改(关闭)此行为的方法?这看起来像是我期望的东西(从pop到buffer),但在ido.el中,我找不到这样的引用。我认为这是一个IDO模式的“特性”,因为当我用-q选项启动Emacs时不会发生这种情况。提前多谢…

    1 回复  |  直到 11 年前
        1
  •  19
  •   quodlibetor    11 年前

    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