* Binding C-a to select all
@ 2008-06-25 1:55 Davin Pearson
2008-06-25 3:19 ` B. T. Raven
` (3 more replies)
0 siblings, 4 replies; 13+ messages in thread
From: Davin Pearson @ 2008-06-25 1:55 UTC (permalink / raw
To: help-gnu-emacs
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?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Binding C-a to select all
2008-06-25 1:55 Binding C-a to select all Davin Pearson
@ 2008-06-25 3:19 ` B. T. Raven
2008-06-25 4:33 ` Davin Pearson
2008-06-25 18:36 ` Joel J. Adamson
` (2 subsequent siblings)
3 siblings, 1 reply; 13+ messages in thread
From: B. T. Raven @ 2008-06-25 3:19 UTC (permalink / raw
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Binding C-a to select all
2008-06-25 3:19 ` B. T. Raven
@ 2008-06-25 4:33 ` Davin Pearson
2008-06-25 5:23 ` Jordan Greenberg
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Davin Pearson @ 2008-06-25 4:33 UTC (permalink / raw
To: help-gnu-emacs
On Jun 25, 3:19 pm, "B. T. Raven" <ni...@nihilo.net> wrote:
> (define-key global-map [(control a)] 'mark-whole-buffer)
Thank you for your help but there is problem with the above code in
that it doesn't highlight the region in the face "region" or "primary-
selection". Please advise me how I can go about getting this
functionality online.
> 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.
You might barf but a long time ago I rebound keys like
C-f to find-file,
C-e to call-last-kbd-macro
and I have never looked back! To me this seems sensible because a PC
keyboard already has cursor keys and home/end keys so I believe that
there is no need for the those standard Emacs keybindings.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Binding C-a to select all
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)
2 siblings, 0 replies; 13+ messages in thread
From: Jordan Greenberg @ 2008-06-25 5:23 UTC (permalink / raw
To: help-gnu-emacs
Davin Pearson wrote:
> On Jun 25, 3:19 pm, "B. T. Raven" <ni...@nihilo.net> wrote:
>> (define-key global-map [(control a)] 'mark-whole-buffer)
>
> Thank you for your help but there is problem with the above code in
> that it doesn't highlight the region in the face "region" or "primary-
> selection". Please advise me how I can go about getting this
> functionality online.
You probably want to add (transient-mark-mode 1) to your .emacs.
-Jordan
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Binding C-a to select all
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)
2 siblings, 0 replies; 13+ messages in thread
From: Joost Kremers @ 2008-06-25 6:02 UTC (permalink / raw
To: help-gnu-emacs
Davin Pearson wrote:
> and I have never looked back! To me this seems sensible because a PC
> keyboard already has cursor keys and home/end keys so I believe that
> there is no need for the those standard Emacs keybindings.
the reason for using control key combos for cursor movement rather than the
cursor keys is that you don't need to take your hands off the keyboard to
move the cursor. that way you can move around the text a lot faster,
especially if you're a touch-typist.
--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Binding C-a to select all
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
2 siblings, 1 reply; 13+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-25 7:52 UTC (permalink / raw
To: Davin Pearson; +Cc: help-gnu-emacs
Davin Pearson wrote:
> On Jun 25, 3:19 pm, "B. T. Raven" <ni...@nihilo.net> wrote:
>> (define-key global-map [(control a)] 'mark-whole-buffer)
>
> Thank you for your help but there is problem with the above code in
> that it doesn't highlight the region in the face "region" or "primary-
> selection". Please advise me how I can go about getting this
> functionality online.
Since you use the arrow keys you might want cua-mode or cua-selection-mode.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Binding C-a to select all
2008-06-25 7:52 ` Lennart Borgman (gmail)
@ 2008-06-25 7:58 ` Davin Pearson
0 siblings, 0 replies; 13+ messages in thread
From: Davin Pearson @ 2008-06-25 7:58 UTC (permalink / raw
To: Lennart Borgman (gmail); +Cc: help-gnu-emacs
2008/6/25 Lennart Borgman (gmail) <lennart.borgman@gmail.com>:
> Since you use the arrow keys you might want cua-mode or cua-selection-mode.
It works... thanks
--
Sincerely and kindest regards, Davin.
Davin Pearson http://www.davinpearson.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Binding C-a to select all
2008-06-25 1:55 Binding C-a to select all Davin Pearson
2008-06-25 3:19 ` B. T. Raven
@ 2008-06-25 18:36 ` Joel J. Adamson
2008-06-25 23:12 ` Xah
[not found] ` <mailman.13837.1214419304.18990.help-gnu-emacs@gnu.org>
3 siblings, 0 replies; 13+ messages in thread
From: Joel J. Adamson @ 2008-06-25 18:36 UTC (permalink / raw
To: Davin Pearson; +Cc: help-gnu-emacs
Davin Pearson <davin.pearson@gmail.com> writes:
> I am using Emacs to teach computer programming to computer novices
They'll continue being novices unless forced out of their comfort
zones.
What I mean is that if you get them to learn the Emacs way, suddenly
they'll be advanced computer users ;)
> and therefore I need to modify Emacs to make it more like a standard
> Windows application.
I disagree that you need to: at least some of the people in your class
will find Emacs keybindings (and the rest of the interface) more
comfortable and logical, and they'll see why they've been so frustrated
with "standard Windows" applications.
Joel
--
Joel J. Adamson
(303) 880-3109
Public key: http://pgp.mit.edu
http://www.unc.edu/~adamsonj
http://trashbird1240.blogspot.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Binding C-a to select all
2008-06-25 1:55 Binding C-a to select all Davin Pearson
2008-06-25 3:19 ` B. T. Raven
2008-06-25 18:36 ` Joel J. Adamson
@ 2008-06-25 23:12 ` Xah
2008-06-30 18:21 ` Miles Bader
[not found] ` <mailman.13837.1214419304.18990.help-gnu-emacs@gnu.org>
3 siblings, 1 reply; 13+ messages in thread
From: Xah @ 2008-06-25 23:12 UTC (permalink / raw
To: help-gnu-emacs
On Jun 24, 6:55 pm, Davin Pearson <davin.pear...@gmail.com> 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?
Please see:
How To Make Emacs Use Modern User Interface
http://xahlee.org/emacs/emacs_make_modern.html
which include several tips and elisp code to make emacs conform to
modern UI standards. Comments welcome.
Xah
∑ http://xahlee.org/
☄
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Binding C-a to select all
[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
0 siblings, 1 reply; 13+ messages in thread
From: Xah @ 2008-06-26 0:34 UTC (permalink / raw
To: help-gnu-emacs
On Jun 25, 11:36 am, adams...@email.unc.edu (Joel J. Adamson) wrote:
> Davin Pearson <davin.pear...@gmail.com> writes:
> > I am using Emacs to teach computer programming to computer novices
>
> They'll continue being novices unless forced out of their comfort
> zones.
>
> What I mean is that if you get them to learn the Emacs way, suddenly
> they'll be advanced computer users ;)
>
> > and therefore I need to modify Emacs to make it more like a standard
> > Windows application.
>
> I disagree that you need to: at least some of the people in your class
> will find Emacs keybindings (and the rest of the interface) more
> comfortable and logical, and they'll see why they've been so frustrated
> with "standard Windows" applications.
Emacs keybindings actually has very little technical merit.
See
http://xahlee.org/emacs/emacs_kb_shortcuts_pain.html
http://xahlee.org/emacs/ergonomic_emacs_keybinding.html
Xah
∑ http://xahlee.org/
☄
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Binding C-a to select all
2008-06-26 0:34 ` Xah
@ 2008-06-26 2:58 ` Joel J. Adamson
0 siblings, 0 replies; 13+ messages in thread
From: Joel J. Adamson @ 2008-06-26 2:58 UTC (permalink / raw
To: Xah; +Cc: help-gnu-emacs
Xah <xahlee@gmail.com> writes:
> On Jun 25, 11:36 am, adams...@email.unc.edu (Joel J. Adamson) wrote:
>> Davin Pearson <davin.pear...@gmail.com> writes:
>> > I am using Emacs to teach computer programming to computer novices
>>
>> They'll continue being novices unless forced out of their comfort
>> zones.
>>
>> What I mean is that if you get them to learn the Emacs way, suddenly
>> they'll be advanced computer users ;)
>>
>> > and therefore I need to modify Emacs to make it more like a standard
>> > Windows application.
>>
>> I disagree that you need to: at least some of the people in your class
>> will find Emacs keybindings (and the rest of the interface) more
>> comfortable and logical, and they'll see why they've been so frustrated
>> with "standard Windows" applications.
>
> Emacs keybindings actually has very little technical merit.
Your objections to Emacs keybindings have very little technical merit.
See
http://xahlee.org/emacs/emacs_kb_shortcuts_pain.html
http://xahlee.org/emacs/ergonomic_emacs_keybinding.html
Joel
--
Joel J. Adamson
(303) 880-3109
Public key: http://pgp.mit.edu
http://www.unc.edu/~adamsonj
http://trashbird1240.blogspot.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Binding C-a to select all
2008-06-25 23:12 ` Xah
@ 2008-06-30 18:21 ` Miles Bader
2008-07-01 17:32 ` Joel J. Adamson
0 siblings, 1 reply; 13+ messages in thread
From: Miles Bader @ 2008-06-30 18:21 UTC (permalink / raw
To: help-gnu-emacs
Xah <xahlee@gmail.com> writes:
> which include several tips and elisp code to make emacs conform to
> modern UI standards. Comments welcome.
"Modern" is not a synonym for "good".
-Miles
--
Is it true that nothing can be known? If so how do we know this? -Woody Allen
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Binding C-a to select all
2008-06-30 18:21 ` Miles Bader
@ 2008-07-01 17:32 ` Joel J. Adamson
0 siblings, 0 replies; 13+ messages in thread
From: Joel J. Adamson @ 2008-07-01 17:32 UTC (permalink / raw
To: Miles Bader; +Cc: help-gnu-emacs
Miles Bader <miles@gnu.org> writes:
> Xah <xahlee@gmail.com> writes:
>> which include several tips and elisp code to make emacs conform to
>> modern UI standards. Comments welcome.
>
> "Modern" is not a synonym for "good".
Nor is "like every dumb application written by programmers with no
respect for their users" a synonym for "good." Emacs treats me like I'm
smart enough to use it.
Joel
--
Joel J. Adamson
(303) 880-3109
Public key: http://pgp.mit.edu
http://www.unc.edu/~adamsonj
http://trashbird1240.blogspot.com
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2008-07-01 17:32 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-25 1:55 Binding C-a to select all Davin Pearson
2008-06-25 3:19 ` B. T. Raven
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
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.