[Top][All Lists]

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

Re: numeric keypad buttons

From: Kai Großjohann
Subject: Re: numeric keypad buttons
Date: Wed, 30 Jul 2003 15:58:40 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Tobias Verbeke <address@hidden> writes:

>> Ah.  Hm.  So, 
>> (define-key function-key-map (kbd "ESC O o") (kbd "<kp-divide>"))
>> (global-set-key (kbd "<kp-divide>") (kbd "/"))
>> didn't do the trick?  
> This works fine.


>> Hm.  Or this:
>> (define-key function-key-map (kbd "ESC O o") (kbd "/"))
> This works well too.


> Was my problem a problem ?

I think you were just missing some of the pieces.  For example, in the
first alternative, you need both lines, just one of them won't do.

(kbd "ESC O o") is just another way of writing "\eOo".  I prefer the
kbd syntax because (a) it's easier to read and (b) it corresponds to
what C-h k and C-h l print.

The first two lines in non-kbd syntax:

    (define-key function-key-map "\eOo" [kp-divide])
    (global-set-key [kp-divide] "/")

As you can see, it's a bit difficult to find the right symbols.

reply via email to

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