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: Jambunathan K
Subject: Re: Help with setting a key (C-<right> moving a full word to the right)
Date: Fri, 07 Jun 2013 12:56:04 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Do

        M-x global-set-key RET

and do whatever Emacs asks you to do.  Once that is done do,

        M-x list-command-history RET

and you will some thing like this:

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

Copy that to your .emacs.  You are done.

Max Rubin <merubin@princeton.edu> writes:

> Hey there helpful listservers!
>
> 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?
>
> Thank you,
> Max



reply via email to

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