0

Most of the time after navigating to my desired I find the file I'm looking for missing, therefore I need to create one, I navigate with C-x RET C-f, how do I create a file after this ?

EDIT The command I'm using is documented here , After typing C-x RET C-f I get the following image, now after pressing I enter into Arena/ I wanna create a file now enter image description here

vikkyhacks
  • 3,190
  • 9
  • 32
  • 47
  • 1
    `C-x RET C-f is undefined` Are you asking about something like?: `M-x write-file` Or, perhaps creating a file using the external command `touch`? – lawlist Sep 18 '14 at 19:12
  • Or are you possibly using `ido` or `helm`, or even `dired`? – ChrisGPT was on strike Sep 18 '14 at 19:15
  • 1
    Here is a related thread relating to file creation in `dired-mode`: http://stackoverflow.com/questions/20300137/how-to-create-new-file-from-dired-mode – lawlist Sep 18 '14 at 19:35
  • `C-x C-f` looks for a file. If the file is not there, you can create one by hitting `return`. It will ask you to confirm the new file; if that's what you want hit `return` once more. – PericlesTheo Sep 18 '14 at 19:59
  • I prefer to use `C-x C-f` to create files over `M-x ! touch...` and the like. My main problem using this is that if the file name matches another file in a different directory in the current project, the prompt gets redirected there unless I hit return **really** quickly after the confirm message. – seans Mar 16 '17 at 19:51

1 Answers1

0

As your screenshot is of a dired buffer...

I posted an answer to another question with an analog of dired-create-directory (+) which creates files instead of directories, but otherwise operates the same way.

I've used it myself on numerous occasions, so I think it's useful.

Community
  • 1
  • 1
phils
  • 71,335
  • 11
  • 153
  • 198