Emacs(ido-mode)中的“open buffer here”

11
我正在使用ido-mode的Emacs。在选择所需的缓冲区时,缓冲区不会出现在当前窗口中,而是会跳转到一个单独的框架和窗口中,该缓冲区已经打开。是否有一种方法可以修改(关闭)这种行为?它似乎是pop-to-buffer的功能,但我在ido.el中找不到此类参考。我认为这是ido-mode的“特性”,因为当我使用-q选项启动Emacs时,这种情况不会发生。非常感谢提前...
1个回答

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-default-buffer-method”似乎是我需要更改的变量,但这使我直接找到了它!谢谢~ - hatmatrix

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接