[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: numeric keypad buttons
From: |
Tobias Verbeke |
Subject: |
Re: numeric keypad buttons |
Date: |
Tue, 29 Jul 2003 19:08:24 +0200 |
> > (global-set-key (kbd "\eOo") "\57")
>
> What does this do? I don't understand the \57 notation.
I found this document:
http://tiny-tools.sourceforge.net/emacs-keys.html
it said somewhere:
* Keys can be written by their ASCII code,
using a backslash followed by up to six
octal digits. This is the only way to
represent keys with codes above \377.
So I looked at this ascii table:
http://web.cs.mun.ca/~michael/c/ascii-table.html
and removed the zero's out of the octal notation
(57 <- 0057) of the '/'-character (as it didn't
work with the zero's in it: this gave me the
'7'-character).
And now the '/'-key on the
numeric keypad produces a '/'
as I wanted.
So now for every button (/, *, -, +, Enter)
there is an isolated line of the type:
(global-set-key (kbd "\eOo") "\57")
in .emacs
I don't understand fully what I did
and doubt I ever will, but it seemed to work.
Cheers,
Tobias
- Re: numeric keypad buttons, (continued)
- Re: numeric keypad buttons, Kevin Rodgers, 2003/07/23
- Re: numeric keypad buttons, Tobias Verbeke, 2003/07/24
- Re: numeric keypad buttons, Kevin Rodgers, 2003/07/25
- Re: numeric keypad buttons, Tobias Verbeke, 2003/07/26
- Re: numeric keypad buttons, Kevin Rodgers, 2003/07/28
- Re: numeric keypad buttons, Tobias Verbeke, 2003/07/29
- Re: numeric keypad buttons, Kai Großjohann, 2003/07/29
- Re: numeric keypad buttons, Tobias Verbeke, 2003/07/29
- Re: numeric keypad buttons, Tobias Verbeke, 2003/07/29
- Re: numeric keypad buttons, Kai Großjohann, 2003/07/29
- Re: numeric keypad buttons,
Tobias Verbeke <=
- Re: numeric keypad buttons, Kai Großjohann, 2003/07/29
- Re: numeric keypad buttons, Tobias Verbeke, 2003/07/29
- Re: numeric keypad buttons, Kai Großjohann, 2003/07/30
- Re: numeric keypad buttons, Kai Großjohann, 2003/07/29
- Re: numeric keypad buttons, Tobias Verbeke, 2003/07/29