How can I create an empty file from emacs, ideally from within a dired buffer?
For example, I\'ve just opened a Python module in dired mode, created a new directory,
The shortest way
Creates an empty file via a shell operation (but does not open it):
M-! > __init__.py RET
> __init__.py
Open the new file:
C-x C-f RET
(Note: we don't have to type in the name again, because the new file is automatically the first choice)