unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: formido <formido@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How do you use a number as an argument to global-set-key?
Date: Sun, 19 Apr 2009 10:58:32 -0700 (PDT)	[thread overview]
Message-ID: <f82caee2-1070-4a69-8d65-3d58d28f93d1@y10g2000prc.googlegroups.com> (raw)
In-Reply-To: mailman.5694.1240162703.31690.help-gnu-emacs@gnu.org

On Apr 19, 10:31 am, thierry.volpia...@gmail.com wrote:
> Hi, use kbd
>
> formido <form...@gmail.com> writes:
> > I want to use the numbers above the keyboard in 'global-set-key',
> > e.g., have a command trigger with C-2. "\C-2" doesn't work. What does?
>
> (global-set-key (kbd "C-2") 'your_command)
>
> > Michael
>
> --
> A + Thierry Volpiatto
> Location: Saint-Cyr-Sur-Mer - France

Ah ha! Thanks very much.


  parent reply	other threads:[~2009-04-19 17:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-19 16:05 How do you use a number as an argument to global-set-key? formido
2009-04-19 17:31 ` thierry.volpiatto
2009-04-19 17:34 ` Peter Dyballa
     [not found] ` <mailman.5694.1240162703.31690.help-gnu-emacs@gnu.org>
2009-04-19 17:58   ` formido [this message]
2009-04-21  6:13 ` Miles Bader

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=f82caee2-1070-4a69-8d65-3d58d28f93d1@y10g2000prc.googlegroups.com \
    --to=formido@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).