Suggestions on Emacs's Scratch Buffer

Xah Lee, 2008-09, 2009-08-27

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 Ergoemacs Keybindings. (see below)

Draft Implementation

The above suggestion is implemented in ErgoEmacs Keybinding.

Some detail about the implementation:

I have been using the above code daily since late 2007, with incremental improvement and bug fixes. It is part of ergoemacs, used by a hundred or more people. 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:

Newsgroups: gnu.emacs.help
From: Xah Lee.
Date: Tue, 16 Sep 2008 13:57:59 -0700 (PDT)
Subject: Re: How to get rid of *GNU Emacs* buffer on start-up?
Source
Was this page useful? If so, please do donate $3, thank you donors!
Home
Terms of Use
About
Advertise
Subscribe
Google
2008-09
© 2008 by Xah Lee.