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

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

Re: key-translation-map and combinations


From: Stefan Monnier
Subject: Re: key-translation-map and combinations
Date: Sun, 25 May 2014 15:33:03 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> My question: Has anyone found a way to make translation mappings like these
> so that a key is only translated when it begins a key sequence?

Yes: don't use key-translation-map.  Instead, change global-map.

(define-key global-map [?\C-f] (lookup-key global-map [?\C-s]))
(define-key global-map [?\C-s] (lookup-key global-map [?\C-x ?\C-s]))


        Stefan




reply via email to

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