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

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

Re: macro with keypad three


From: Xah
Subject: Re: macro with keypad three
Date: Wed, 8 Oct 2008 10:20:32 -0700 (PDT)
User-agent: G2/1.0

"Stefan Thomas" wrote:
> (global-set-key [?\C-3] 'dreiklang)
>  But I want to execute this macro with the 3 of the keypad. How can I define
> this?

In short, like this:

(global-set-key (kbd "<kp-4>") 'backward-punctuation)

For more detail, see:

How to Define Keyboard Shortcuts in Emacs
http://xahlee.org/emacs/keyboard_shortcuts.html

  Xah
∑ http://xahlee.org/

reply via email to

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