From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: Binding C-a to select all Date: Tue, 24 Jun 2008 22:19:04 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1214365254 10288 80.91.229.12 (25 Jun 2008 03:40:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Jun 2008 03:40:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 25 05:41:39 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KBLsw-0006CE-SE for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Jun 2008 05:41:31 +0200 Original-Received: from localhost ([127.0.0.1]:55102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBLs7-0006Wu-6O for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jun 2008 23:40:39 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 24 Jun 2008 22:19:03 -0500 User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 25 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 65.45.140.28 Original-X-Trace: sv3-MukAZUSRl///1uKJeWBbGg7+LzISkohcFobmYjXOZY+djnBfW4TVz45r5+XElw4pc9+a1p6/n6ollKh!wAYzzSSRt7vnIZYvIAqBPkMDQH8BuINKwtCouI+bfGbP4iYJfOmFf0ZqYASX1W4WCk7+Zvdg8+qq!PdB8iVsOsreEMSEZa2oOfB4z0WTl2g== Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:159716 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55071 Archived-At: Davin Pearson wrote: > I am using Emacs to teach computer programming to computer novices and > therefore I need to modify Emacs to make it more like a standard > Windows application. > > I have downloaded cua.el to implement certain windows keybindings but > cua.el doesn't bind C-a to select all, a feature which I would like. > > Could someone present me with some Elisp code that provides this > feature? Evaluate this form with C-x C-e or put it in .emacs: (define-key global-map [(control a)] 'mark-whole-buffer) But I advise against it. C-a C-e M-a and M-e work together mnemonically if you think of a and e as Anfang and Ende (German beginning and end). Making the change you suggest disturbs this symmetry among related commands. Using Dvorak layout and Keytweak on w2000 I have needed to change only about half a dozen Emacs bindings (4 of them for single character cursor movement via keys close to home row and so as to avoid the arrow keys). This layout enables me to type ALL commands as easily as I can type a shifted number key. Ed