💻 Software
Can I create directories that don't exist while creating a new file in emacs?
Fresh5 days ago
Mar 15, 20269102 viewsConfidence Score0%
0%
Problem
In emacs, I create a file by visiting it with C-x C-f. Let's say I'd like to create . If new_directory does not exist yet, is there a way to have it get created during the creation of without any extra steps? (I'm thinking of something like using the flag to in Linux.) I feel like there's a differe…
Error Output
/home/myself/new_directory/file.txt
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Can I create directories that don't exist while creating a new file in emacs?
Low Risk
You can also advise function to transparently create necessary directories. Simply put this in your somewhere and use C-x C-f as usual.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix