How to create new file from dired mode?

前端 未结 6 1261
眼角桃花
眼角桃花 2021-02-06 20:52

I want to create a new file in dired mode. Is there \"create new file\" command in dired mode ? For example, When I type \"c\" in dired mode, it creates \"untitled.txt\". It\'s

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-06 20:59

    1. press C-x C-f
    2. enter file name
    3. press C-j

    after the above steps, emacs will create an empty buffer with the name you input. But emacs doesn't support to create empty file by default. You can refer to How do I create an empty file in emacs for more ideas

提交回复
热议问题