Saturday, July 5, 2008

create a buffer




To create a new buffer:


'C-x b BUFFER <RET>'
Select or create a buffer named BUFFER ('switch-to-buffer').


This is useful for when you accidentally delete your *scratch* buffer and don't want to restart your emacs process just to create a new one.



2 comments:

cartman said...

I possibly got this wrong but, doing this just creates a new buffer named "BUFFER" not a scratch buffer, using emacs CVS FWIW.

xradiographer said...

Not if the new buffer is called *scratch* -- it's automatically started in Lisp Interaction mode.

Which you could do for any ol' buffer with M-x lisp-interaction-mode.

The scratch buffer is just a place for "hasty scribbles" -- so any buffer that isn't visiting a file will do, for some things...