Like, Control-A (select all) followed by delete?
Press C-h w. Type the name of the command: kill-buffer ( you can also use tab/space to autocomplete :) ) Press RET.
Buffers in Emacs editing are objects that have distinct names and hold text that can be edited. Buffers appear to Lisp programs as a special data type. You can think of the contents of a buffer as a string that you can extend; insertions and deletions may occur in any part of the buffer.
To change the read-only status of a buffer, use C-x C-q (toggle read-only-mode ). To change file permissions, you can run dired on the file's directory ( C-x d ), search for the file by C-s and use M to change its mode.
How about using:
M-x erase-buffer
Which you could bind to whatever you want.
C-x h + del
key clears the buffer
Note: This requires transient-mark-mode
to be enabled (which it is by default).
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