In emacs, I format a file as: 1) C-x h (or M-x mark-whole-buffer) 2) C-M-\ (or M-x indent-region)
I need help show me how to format all files under a dir?
Create a macro to do it. Open the directory in dired (C-x d), and then:
bury-buffer
. You'll be back in the dired buffer.So now you have a macro that opens the file on the current line, formats it, drops back to dired, and puts point to the next line. Run it with F4 as many times as needed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With