From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: formido Newsgroups: gmane.emacs.help 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) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1240166561 8040 80.91.229.12 (19 Apr 2009 18:42:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Apr 2009 18:42:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 19 20:44:01 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lvbzf-0004MZ-MB for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Apr 2009 20:43:55 +0200 Original-Received: from localhost ([127.0.0.1]:35652 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvbyG-0007dN-Tc for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Apr 2009 14:42:28 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!y10g2000prc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 75.84.175.111 Original-X-Trace: posting.google.com 1240163912 24547 127.0.0.1 (19 Apr 2009 17:58:32 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 19 Apr 2009 17:58:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y10g2000prc.googlegroups.com; posting-host=75.84.175.111; posting-account=ivEBWwoAAAAvVw947tp2U-HBcoAwWEMu User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:168606 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63880 Archived-At: On Apr 19, 10:31=A0am, thierry.volpia...@gmail.com wrote: > Hi, use kbd > > formido 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.