[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: |
Miles Bader |
Subject: |
Re: How do you use a number as an argument to global-set-key? |
Date: |
Tue, 21 Apr 2009 15:13:16 +0900 |
formido <formido@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?
Use a vector instead of a string (strings can only contain a limited
subset of keys).
E.g.: (global-set-key [?\C-2] 'foo)
-Miles
--
Quotation, n. The act of repeating erroneously the words of another. The words
erroneously repeated.