Post

24 Buffer manipulation commands

KeystrokesCommand nameAction
C-x b Buffers Select Named Bufferswitch-to-bufferMove to the buffer specified.
C-x Buffers Next Buffernext-bufferMove to the next buffer in the buffer list.
C-x Buffers Previous Bufferprevious-bufferMove to the previous buffer in the buffer list.
C-x C-b Buffers List All Bufferslist-buffersDisplay the buffer list.
C-x kkill-bufferDelete the buffer specified.
(none)kill-some-buffersAsk about deleting each buffer.
(none)rename-bufferChange the buffer’s name to the name specified.
C-x ssave-some-buffersAsk whether you want to save each modified buffer.

Buffer list commands

KeystrokesActionOccurs
C-n, Space, n, orMove to the next buffer in the list (i.e., down one line).Immediately
C-p, p, orMove to the previous buffer in the list (i.e., up one line).Immediately
dMark buffer for deletion.When you pressx
kMark buffer for deletion.When you pressx
sSave buffer.When you pressx
uUnmark buffer.Immediately
xExecute other one-letter commands on all marked buffers.Immediately
DelUnmark the previous buffer in the list; if there is no mark, move up one line.Immediately
~Mark buffer as unmodified.Immediately
%Toggle read-only status of buffer.Immediately
1Display buffer in a full screen.Immediately
2Display this buffer and the next one in horizontal windows.Immediately
fReplace buffer list with this buffer.Immediately
oReplace other window with this buffer.Immediately
mMark buffers to be displayed in windows.When you pressv
vDisplay buffers marked withm; Emacs makes as many windows as needed.Immediately
qQuit buffer list.Immediately
This post is licensed under CC BY 4.0 by the author.