Can I create directories that don't exist while creating a new file in emacs?
- by Jim
In emacs, I create a file by visiting it with C-x C-f. Let's say I'd like to create /home/myself/new_directory/file.txt.
If new_directory does not exist yet, is there a way to have it get created during the creation of file.txt without any extra steps? (I'm thinking of something like using the -p flag to mkdir in Linux.)
I feel like there's a different keystroke instead of C-x C-f that can do this, but I can't remember what it is.