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: Eli Zaretskii
Subject: Re: Help with setting a key (C-<right> moving a full word to the right)
Date: Fri, 07 Jun 2013 10:06:25 +0300

> Date: Thu, 6 Jun 2013 23:20:26 -0400
> From: Max Rubin <merubin@princeton.edu>
> 
> I only discovered today that you can edit your .emacs file and add in
> custom keys and change the settings, and I've unfortunately run into a
> problem.  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, but I cannot
> figure out how represent C+<right/left arrow>.  I've tried "
> (global-set-key (kbd "C-<right>") 'forward-word " but that doesn't work.
> In fact, no key name that exists in angle brackets (<f1>, <f9>, <home>,
> <end>) work.  If I changed it to " (global-set-key (kbd "C-l")
> 'forward-word ", then it works as expected, so my computer is definitely
> not comprehending the angle bracket keys.
> 
> Anyone know what is wrong and how to fix it?

This works by default, so I'm unsure why would you need to do anything
to have C-<right> and C-<left> move by words.

What version of Emacs is that, an on what OS?  Is this a GUI session
or a text-terminal session?



reply via email to

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