help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with setting a key (C-<right> moving a full word to the right)


From: Emanuel Berg
Subject: Re: Help with setting a key (C-<right> moving a full word to the right)
Date: Fri, 07 Jun 2013 21:06:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Max Rubin <merubin@princeton.edu> writes:

> I want ctrl+right arrow to move forward one whole word at a
> time, and ctrl+left arrow to move back a whole word at a time.
> The keys M-f and M-b already do this using 'forward-word and
> 'backward-word

M-f and M-b are much better shortcuts for this. That way you don't
have to move you right hand from the typing area of the
keyboard. All the cursor movement shortcuts are placed there, and
for good reason: C-a, C-e (start or end of line); C-f, C-b (move
forward or backward by char); M-d, M-DEL (kill word forward or
backward); C-t to "transpose", i.e., to fix the common typo of
incorrect char order; etc.

You are able to move the cursor wherever you like it, kill, yank,
whatever you like to do, but at the instant you are done and wish
to resume typing, both your hands are still in the correct
position.

Jambunathan K <kjambunathan@gmail.com> writes:

> (global-set-key [C-right] (quote forward-word))

That doesn't work for me. When I press C-right, only <right> is
reported. I'm using GNU Emacs 23.4.1 in a Linux VT.

-- 
Emanuel Berg - programmer (hire me! CV below)
computer projects: http://user.it.uu.se/~embe8573
internet activity: http://home.student.uu.se/embe8573


reply via email to

[Prev in Thread] Current Thread [Next in Thread]