From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: emacs keybinding syntaxes bewilderment Date: Mon, 17 Dec 2007 10:38:58 +0100 Message-ID: <87y7btvex9.fsf@member.fsf.org> References: <19df9387-2846-403c-a86d-d361f10645dd@d27g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1197885257 9491 80.91.229.12 (17 Dec 2007 09:54:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Dec 2007 09:54:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 17 10:54:29 2007 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 1J4Cg3-0001zS-7r for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Dec 2007 10:54:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4Cfj-0008UN-F5 for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Dec 2007 04:54:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4CWh-0004lG-C2 for help-gnu-emacs@gnu.org; Mon, 17 Dec 2007 04:44:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4CWc-0004jj-Eu for help-gnu-emacs@gnu.org; Mon, 17 Dec 2007 04:44:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4CWb-0004jD-0g for help-gnu-emacs@gnu.org; Mon, 17 Dec 2007 04:44:37 -0500 Original-Received: from main.gmane.org ([80.91.229.2] 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 1J4CWa-0004ee-F6 for help-gnu-emacs@gnu.org; Mon, 17 Dec 2007 04:44:36 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1J4CVE-0003EY-Oy for help-gnu-emacs@gnu.org; Mon, 17 Dec 2007 09:43:12 +0000 Original-Received: from dslb-084-063-026-160.pools.arcor-ip.net ([84.63.26.160]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Dec 2007 09:43:12 +0000 Original-Received: from tassilo by dslb-084-063-026-160.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Dec 2007 09:43:12 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-063-026-160.pools.arcor-ip.net User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:I/me/hyjbGy2baT56aS7GTCtB5s= X-detected-kernel: by monty-python.gnu.org: 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:50138 Archived-At: rustom writes: Hi! > I am using emacs for the last 15 years but every time I try to do a > define-key or global-set-key, I have to fish around in the info pages > to get the key syntax right. Ok, there are a lot of alternatives, but with `kbd' you're always on the safe side. Simply do `C-h k '. That will show you the right synctax for `kbd'. Example: `C-h k C-c M-t' echoes C-c M-t is undefined So you cold use (define-key foo-bar-map (kbd "C-c M-t") 'some-command) Bye, Tassilo