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

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

Re: ctl-x-map woes


From: Stefan Monnier
Subject: Re: ctl-x-map woes
Date: Mon, 10 Jan 2011 12:49:50 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> 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.


        Stefan


reply via email to

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