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: Bruno Félix Rezende Ribeiro
Subject: Re: Help with setting a key (C-<right> moving a full word to the right)
Date: Sat, 08 Jun 2013 21:46:11 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

Emanuel Berg <embe8573@student.uu.se> writes:

> Eli Zaretskii <eliz@gnu.org> writes:
>
>>>> I don't know what is a "Linux VT", but I suspect that it's a
>>>> text-mode terminal.  In which case Emacs simply doesn't get
>>>> reported that C-right was pressed.  Try "C-h l" (that's the
>>>> letter ell, not the digit one), and see if Emacs at all sees
>>>> the Ctrl modifier.
>>> 
>>> It doesn't, like I said :)
>>
>> If Emacs doesn't see the Ctrl-right key, then the solution to
>> this, if any, is not on the Emacs level.
>
> Correct. There was a guy who taught me a method, with which I setup
> the backtab in Emacs (which was also unnoticed at first). If he is
> reading this, perhaps he can tell us more.

Here I made it work.  My kernel keymap snippet:

----- kernel keymap begin -----
control keycode 105 = U+0117 # <C-left>
control keycode 106 = U+0118 # <C-right>
control keycode 103 = U+0119 # <C-up>
control keycode 108 = U+011A # <C-down>
----- kernel keymap end -----

My emacs keymap snippet:

----- emacs keymap begin -----
(define-key input-decode-map [?\u0117] [C-left])
(define-key input-decode-map [?\u0118] [C-right])
(define-key input-decode-map [?\u0119] [C-up])
(define-key input-decode-map [?\u011A] [C-down])
----- emacs keymap end -----

Notice that it is not necessary to explicit bind each emacs
control-arrow sequence to the respective motion function because it is
already done by default.

Hope it helps.
-- 
 ,= ,-_-. =.  Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF]
((_/)o o(\_)) There is no system but GNU;
 `-'(. .)`-'  Linux-libre is just one of its kernels;
     \_/      All software should be free as in freedom;

Attachment: pgp79xfiZOo36.pgp
Description: PGP signature


reply via email to

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