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

hat*_*rix 11 emacs elisp

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

gio*_*ian 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
Run Code Online (Sandbox Code Playgroud)

  • 在我的情况下,ido-default-buffer-method似乎是我需要改变的变量,但这导致我正确!谢谢〜 (3认同)