Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Kill (Delete/Close) A Buffer In Emacs

Use this to open a menu giving the list of possible buffers to kill:

Code

C-x k

Then choose the buffer via it's number and hit RET (return/enter) to kill it.

It'll warn you if it's not saved, but the default option is to close without saving if you hit 'y'.