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

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

Re: How to translate M-kp-multiply to M-* before key is mapped to functi


From: Stefan Monnier
Subject: Re: How to translate M-kp-multiply to M-* before key is mapped to function?
Date: Mon, 05 Jul 2004 18:05:28 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> My problem is, is that kp-multiply is bound to * somewhere down the line,
> but C-kp-multiply, M-kp-multiply and C-M-kp-multiply are not.  I would
> like C-kp-multiply to act like C-*, M-multiply to act like M-*, and
> C-M-kp-multiply to act like C-M-* (without having to rely on information
> to what functions C-*, M-* and C-M-* are bound).

> How to tell keyboard-translate to do just this?

You need something like

  (define-key function-key-map [M-kp-multiply] [?\M-*])
  (define-key function-key-map [C-kp-multiply] [?\C-*])
  (define-key function-key-map [C-M-kp-multiply] [?\C-\M-*])

I don't think there is an easy way to have all combinations mapped in
a single step.  Sadly.


        Stefan


reply via email to

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