[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ctl-x-map woes
From: |
Deniz Dogan |
Subject: |
Re: ctl-x-map woes |
Date: |
Tue, 11 Jan 2011 00:45:48 +0100 |
2011/1/10 Stefan Monnier <monnier@iro.umontreal.ca>:
>> I bind C-t to ctl-x-map so I can use C-t as a replacement prefix for
>> most C-x commands, e.g., C-t C-s, C-t C-f, etc.
>
>> But I have noticed that C-t 8 RET is the only C-x 8 key that works
>> when I do this. None of the other C-x 8 keys map to C-t 8.
>
> Because all the other C-x 8 "bindings" are not bindings to commands but
> are key remappings, i.e., they're not in the global-map but in the
> key-translation-map. E.g., this means that you can run the command
> bound to "C-c é" (if any) by typing "C-c C-x 8 ' e".
>
> So maybe
>
> (define-key key-translation-map [?\C-t]
> (lookup-key key-translation-map [?\C-x]))
>
> will complete your C-t to also apply to C-t 8 ' e.
>
Thank you, this works perfectly.
--
Deniz Dogan