From: "B. T. Raven" <nihil@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Binding C-a to select all
Date: Tue, 24 Jun 2008 22:19:04 -0500 [thread overview]
Message-ID: <t7CdnW7XbsG6JPzVnZ2dnUVZ_tzinZ2d@sysmatrix.net> (raw)
In-Reply-To: <c931081f-99f9-468f-8936-243997201672@w5g2000prd.googlegroups.com>
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
next prev parent reply other threads:[~2008-06-25 3:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-25 1:55 Binding C-a to select all Davin Pearson
2008-06-25 3:19 ` B. T. Raven [this message]
2008-06-25 4:33 ` Davin Pearson
2008-06-25 5:23 ` Jordan Greenberg
2008-06-25 6:02 ` Joost Kremers
2008-06-25 7:52 ` Lennart Borgman (gmail)
2008-06-25 7:58 ` Davin Pearson
2008-06-25 18:36 ` Joel J. Adamson
2008-06-25 23:12 ` Xah
2008-06-30 18:21 ` Miles Bader
2008-07-01 17:32 ` Joel J. Adamson
[not found] ` <mailman.13837.1214419304.18990.help-gnu-emacs@gnu.org>
2008-06-26 0:34 ` Xah
2008-06-26 2:58 ` Joel J. Adamson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=t7CdnW7XbsG6JPzVnZ2dnUVZ_tzinZ2d@sysmatrix.net \
--to=nihil@nihilo.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.