Emacs ido模式并在目录中创建新文件,它在输入时不断更改目录 [英] Emacs ido-mode and creating new files in directories, it keeps changing the directory while I'm typing

查看:132
本文介绍了Emacs ido模式并在目录中创建新文件,它在输入时不断更改目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当在emacs中使用ido模式时,当我尝试在目录中创建一个新文件时,会使用以下方法: Cx Cf (开始输入新的文件名,不存在) RET

When using ido-mode in emacs, it tends to get in my way when I'm trying to create a new file inside a directory, using: C-x C-f ( start typing a new filename, which doesn't yet exist ) RET

通常这应该会创建一个新文件,但是当我有ido模式,我必须快速键入新的文件名,否则ido模式决定将我移动到具有匹配名称的文件的目录,导致我打开该文件,而不是创建一个新的文件。

Ordinarily this should create a new file, but when I have ido mode, I have to type the new filename really quickly, otherwise ido-mode decides to move me into a directory that has a file with a matching name, causing me to open that file, instead of creating a new file.

有没有人知道如何强制ido模式,以避免看目录以外的目录?

Does anybody know how to force ido-mode to avoid looking in directories other than the one you're currently in?

推荐答案

您可以禁用合并(在其他目录中查找ido vulgo)与

You can disable the merging (the "looking in other directories" in ido vulgo) with

(setq ido-auto-merge-work-directories-length -1)

也可以在ido中撤销与 Cz 的合并。

but you can also undo the merge with C-z in ido.

这篇关于Emacs ido模式并在目录中创建新文件,它在输入时不断更改目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆