2010-02-24 65 views
11

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

回答

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 
+3

在我的情况IDO-默认的缓冲区方法似乎是我需要改变的变量,但是这使我对它的权利!谢谢〜 – hatmatrix 2010-02-24 11:05:54

相关问题