If I accidentally closed the scratch buffer in Emacs, how do I create a new scratch buffer?
|
|
Just re-create the buffer by switching to it: |
|||||||||||||
|
|
It's arguably better to re-create the
|
|||
|
|
|
GNU Emacs default bindings: C-xb or, more verbosely
The In general you can create as many "scratch" buffers as you want, and name them however you choose. C-x b switches to buffer M-x To find all the modes available (that is, without requiring any new packages), you can get a list by typing:
|
||||
|
|
|
May I suggest to create an empty buffer? The interesting thing being that, you create the buffer first, and you save it after, if you really want to.
You will have to set initial-major-mode to lisp in your init file and you should bind the my-empty-buffer to a shortcut like Courtesy of ergoemacs |
||||
|
|
|
I like to use scratch buffers for throw-away stuff. Having only one is somewhat limiting though, therefore I have
adopted from: http://everything2.com/index.pl?node_id=1038451 |
|||
|
|