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
If you want c in Dired mode to do what C-x C-f does, the answer is trivial:
c
C-x C-f
(define-key dired-mode-map "c" 'find-file)
Or if you want it to have the name untitled.txt then:
untitled.txt
(define-key dired-mode-map "c" (lambda () (interactive) (find-file "untitled.txt")))