all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xah <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: macro with keypad three
Date: Wed, 8 Oct 2008 10:20:32 -0700 (PDT)	[thread overview]
Message-ID: <7c903da1-09db-48db-8450-b31bfa917fbd@f37g2000pri.googlegroups.com> (raw)
In-Reply-To: mailman.561.1223471058.25473.help-gnu-emacs@gnu.org

"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	other threads:[~2008-10-08 17:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.561.1223471058.25473.help-gnu-emacs@gnu.org>
2008-10-08 17:20 ` Xah [this message]
2008-10-08 13:04 macro with keypad three Stefan Thomas
2008-10-08 14:43 ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7c903da1-09db-48db-8450-b31bfa917fbd@f37g2000pri.googlegroups.com \
    --to=xahlee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.