From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rodolfo Medina Newsgroups: gmane.emacs.help Subject: [solved] Re: Binding key to command Date: Wed, 29 Jul 2009 21:11:46 +0100 Message-ID: <87y6q79rlp.fsf_-_@gmail.com> References: <87r5vzz3ns.fsf@gmail.com> <874osvz5hi.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1248895519 5601 80.91.229.12 (29 Jul 2009 19:25:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jul 2009 19:25:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 29 21:25:12 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 1MWElz-0000Zl-4c for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jul 2009 21:25:11 +0200 Original-Received: from localhost ([127.0.0.1]:37811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWEly-0006Pq-73 for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jul 2009 15:25:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWEaj-0001qx-H7 for help-gnu-emacs@gnu.org; Wed, 29 Jul 2009 15:13:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWEae-0001ne-7S for help-gnu-emacs@gnu.org; Wed, 29 Jul 2009 15:13:32 -0400 Original-Received: from [199.232.76.173] (port=57559 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWEad-0001nK-Sm for help-gnu-emacs@gnu.org; Wed, 29 Jul 2009 15:13:28 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:54537 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWEad-0001pq-BJ for help-gnu-emacs@gnu.org; Wed, 29 Jul 2009 15:13:27 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MWEaX-0000EM-Gu for help-gnu-emacs@gnu.org; Wed, 29 Jul 2009 19:13:21 +0000 Original-Received: from 151.82.15.53 ([151.82.15.53]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Jul 2009 19:13:21 +0000 Original-Received: from rodolfo.medina by 151.82.15.53 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Jul 2009 19:13:21 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 151.82.15.53 User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:HqDMVwFonXp9A4GxdqqGijxdNao= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:66492 Archived-At: Rodolfo Medina writes: >> I wish to use the key combinations `C-,' and `C-;' for a certain >> command, but Emacs does not seem to accept the expression >> >> global-set-key "\C-," >> >> What should I put instead of that in ~/.emacs? Tassilo Horn writes: > (global-set-key (kbd "C-,") 'rodolfos-favourite-command) Nathaniel Flath writes: > Try (global-set-key (kbd "C-;) and (global-set-key (kbd "C-,") Thanks! This seems to work fine Rodolfo