0

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.

  • For many (most?) users, killing buffers is a rare operation, so please give details: which buffer exactly id you try to kill, what exact sequence of operations did you do; and of course: why do you want to kill those buffer. – Stefan Feb 22 at 21:49
  • Welcome to Emacs! As a beginner, I highly recommend reading the build in tutorial via 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! :) – Lorem Ipsum Feb 22 at 21:55
  • 2
    Also, I'm not able to reproduce your problem from a freshly loaded emacs -Q. What steps reproduce the problem for you? – Lorem Ipsum Feb 22 at 21:57
  • 2
    Perhaps you just need to refresh the buffer list? (Either use C-x C-b again, or type g within that buffer). – phils Feb 23 at 2:41
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.