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,
(shell-command (concat "touch " (buffer-file-name))) will do what you want, if you've already opened the empty file.
(shell-command (concat "touch " (buffer-file-name)))