[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do you use a number as an argument to global-set-key?
From: |
formido |
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) |
User-agent: |
G2/1.0 |
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.