This question may sound stupid. But I do search online and couldn't find a answer. So what's the emacs command to clear all the content in a file? I want to clear my error_log file.
Rather than erase-buffer
, you can use C-x h C-w
.
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