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

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

Re: [help] emacs on gnome-terminal


From: Stefan Monnier
Subject: Re: [help] emacs on gnome-terminal
Date: Mon, 23 Jul 2007 23:48:23 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

>> emacs still gives me pesky ;5D;5C;5D;5C;5D;5C;5D;5C;5D;5C.
>> [I tried xterm-extras without my .emacs]

> Try the following in your ~/.emacs file:

> (define-key global-map "\eO1;5A" [(control up)])
> (define-key global-map "\eO1;5B" [(control down)])
> (define-key global-map "\eO1;5C" [(control right)])
> (define-key global-map "\eO1;5D" [(control left)])

Actually such key-mapping should not be done in global-map, but in
function-key-map:

(define-key function-key-map "\eO1;5A" [C-up])
(define-key function-key-map "\eO1;5B" [C-down])
(define-key function-key-map "\eO1;5C" [C-right])
(define-key function-key-map "\eO1;5D" [C-left])


-- Stefan


reply via email to

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