简体   繁体   English

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

[英]“open buffer here” in emacs (ido-mode)

I am using emacs in ido-mode. 我在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. 当选择所需的缓冲区时,我将进入一个单独的框架和窗口,而不是当前窗口中显示的缓冲区,缓冲区已经打开。 Is there a way to modify (turn off) this behavior? 有没有办法修改(关闭)这种行为? It seems like something I expect from (pop-to-buffer) but in ido.el there is no such reference that I can find. 这似乎是我期望的(pop-to-buffer)但是在ido.el中没有我能找到的这样的引用。 I think it's an ido-mode "feature" because it does not happen when I start emacs with the -q option. 我认为这是一个偶像模式“功能”,因为当我使用-q选项启动emacs时不会发生这种情况。 Thanks much in advance... 非常感谢...

ido-default-buffer-method may be what you are looking for, it has the same possible values as ido-default-file-method , and directs you to its help, which is: 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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM