gpt4 book ai didi

emacs - emacs 中的 "open buffer here"(ido 模式)

转载 作者:行者123 更新时间:2023-12-04 01:48:11 25 4
gpt4 key购买 nike

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

最佳答案

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

关于emacs - emacs 中的 "open buffer here"(ido 模式),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2324835/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com