This is my first day on Emacs, and I am really liking it so far, but I cannot seem to be able to work correctly with buffers. I am trying to kill specific buffers with C-x k
, however upon checking the buffer list with C-x C-b
all of my original buffers still seem to exist. I know this must be user error, but I can't seem to find anyone with this problem.
2 Answers
Given you have multiple buffers open, use
C-x C-b
to open the buffer list. You will be given a nice list of all the buffers currently in memory. Make sure you have the current window that displays the buffer list open. Use
C-x o
to navigate to the aforementioned window. Now you have several options here. First you can mark the specific buffers you want for editing using
m
This will prompt a ">" next to the buffer name. Now use
C-k
to mark the specific buffers for deletion. This will prompt a "D" next to the buffer name. Once you have a list of buffers you marked for deletion, then use
x
to execute the Deletion. The x command will execute the deletion and remove the buffers from memory.
When you have moved to the buffer-list (made it active), press g
. This will update this buffer and the buffers that have already been deleted will disappear from the list, just the list does not automatically update when you call it, but it shows it is already open
C-h t
. This doesn't pertain to your question, per se, but I wish someone had told me about the tutorial on my first day. :) Unless you mean the StackExchange...in that case, welcome! :)emacs -Q
. What steps reproduce the problem for you?C-x C-b
again, or typeg
within that buffer).