Emacs ido-mode and creating new files in directories, it keeps changing the directory while I'm typing

后端 未结 3 484
一向
一向 2021-02-01 02:06

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 filen

相关标签:
3条回答
  • 2021-02-01 02:47

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

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

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

    0 讨论(0)
  • 2021-02-01 02:54

    Use C-j to tell ido to input what you have typed rather than the first completion. This is also mentioned on emacswiki.

    0 讨论(0)
  • 2021-02-01 03:05

    Doing this really helps. Basically use ido-mode up until you get to the correct directory, then hit C-f again to get out of ido-mode as you type the new filename.

    C-x C-f navigate to directory C-f enter new filename RET.

    0 讨论(0)
提交回复
热议问题