Next: List Buffers Up: Buffers
Creating and Selecting Buffers
`C-x b BUFFER RET'
Select or create a buffer named BUFFER (`switch-to-buffer').
`C-x 4 b BUFFER RET'
Similar, but select BUFFER in another window
To select the buffer named BUFNAME, type `C-x b BUFNAME RET'. This
runs the command `switch-to-buffer' with argument BUFNAME. You can use
completion on an abbreviation for the buffer name you want (*note
Completion::.). An empty argument to `C-x b' specifies the most
recently selected buffer that is not displayed in any window.
Most buffers are created by visiting files, or by Emacs commands that
want to display some text, but you can also create a buffer explicitly
by typing `C-x b BUFNAME RET'. This makes a new, empty buffer which is
not visiting any file, and selects it for editing. Such buffers are
used for making notes to yourself. If you try to save one, you are
asked for the file name to use. The new buffer's major mode is
determined by the value of `default-major-mode' (Note: Major Modes.).
Note that `C-x C-f', and any other command for visiting a file, can
also be used to switch buffers. Note: Visiting.
automatically generated by info2www