2010-02-24 63 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

相關問題