Suggestions on Emacs's Scratch Buffer

Xah Lee, 2008-09

In the article The Modernization of Emacs, i suggested that emacs's “*scratch*” buffer be removed. In this article, i give some detail about it.

In the article, i gave the following as primary reasons that scratch buffer should be removed:

Here are few minor reasons:

Proposed Fix

I propose that emacs should also add a menu command “New buffer”, with the keyboard shortcut “Ctrl+n” (see note on this below). Once called, it should create a scratch buffer titled “untitled”. If one already exists, append numbers such “untitled 2”. Here are the reasons:

Note: the proposed keybinding “Ctrl+n” and “Ctrl+w” need not be part of this proposal because emacs already use “Ctrl+n” and “Ctrl+w” for basic cursor movement and cut. However, it could be adapted in conjunction with newly designed Ergonomic Keybinding. (see below)

Draft Implementation

The above suggestion is experimentally implemented in my Ergonomic Keyboard Shortcut Layout For Emacs. The following are the elisp files.

Some detail about the implementation:

I have been using the above code daily since late 2007, with incremental improvement and bug fixes. i'm sure it can use a lot more polishing for public use. The code is GPL'd, so feel free to grab pieces for your own use or submit into GNU.

PS the orginal thread of this discussion, which turned into a flame feast, is here: http://groups.google.com/group/gnu.emacs.help/browse_frm/thread/bf2fae706a7424f0/9d3b5dd5c1de989c.

2008-09
© 2008 by Xah Lee.