Whenever I delete a file that I no longer need in emacs using delete-file
command, the buffer associated with the file is still open in emacs. Is there a way I can change this behaviour so that whenever I delete a file, the buffer associated with it is also automatically deleted.
|
||||
|
I wrote this method, which differs slightly from the one in the other answer:
If you have the buffer open in Emacs, I find it easier to specify the buffer to delete, mainly because Emacs defaults to the current buffer. So if point is in the buffer you want to delete, you can just hit enter, rather than having to type in the filename you want to delete. |
|||||
|
You could use this function instead of
|
||||
|