Various Ways of Creating Files in Emacs
Those Methods That Create and Open File for Editing
C-x C-f
– basic method
Allows you to choose your path, create a file + open the newly created file for editing.
C-x b
[name-of-buffer]
Find directory
C-x C-w (this warns if a file of the same name exists)
Chooses buffer name as file name on RET
Those Methods That Create the File and Do Not Open It for Editing
dired-create-empty-file
Prompts for path + file-name, but does not open file for editing.
M-!
touch + the name of file – create a new file anywhere.
Uses a relative path. I.e. the directory you are currently in.
Does not prompt for a directory.
This also works in the dired buffer.
Also note: the files are not automatically opened after this