emacs中的“打开缓冲区”(ido-mode)

时间:2010-02-24 09:19:31

标签: emacs elisp

我在ido模式下使用emacs。当选择所需的缓冲区时,我将被带到一个单独的框架和窗口,而缓冲区已经打开,而不是当前窗口中显示的缓冲区。有没有办法修改(关闭)这种行为?这似乎是我期望的(pop-to-buffer)但是在ido.el中没有我能找到的这样的引用。我认为这是一个偶像模式“功能”,因为当我使用-q选项启动emacs时不会发生这种情况。非常感谢...

1 个答案:

答案 0 :(得分:19)

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
相关问题