From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Mattie Newsgroups: gmane.emacs.help Subject: Re: emacs keybinding syntaxes bewilderment Date: Sat, 15 Dec 2007 23:22:33 -0800 Message-ID: <20071215232233.2ee6fb64@reforged> References: <19df9387-2846-403c-a86d-d361f10645dd@d27g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1364640773==" X-Trace: ger.gmane.org 1197791601 2767 80.91.229.12 (16 Dec 2007 07:53:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Dec 2007 07:53:21 +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 Dec 16 08:53:33 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 1J3oJ7-0002Ba-2X for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Dec 2007 08:53:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J3oId-0008SB-Vg for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Dec 2007 02:52:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J3nqX-0003Q3-9H for help-gnu-emacs@gnu.org; Sun, 16 Dec 2007 02:23:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J3nqV-0003NK-NL for help-gnu-emacs@gnu.org; Sun, 16 Dec 2007 02:23:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J3nqV-0003N1-9c for help-gnu-emacs@gnu.org; Sun, 16 Dec 2007 02:23:31 -0500 Original-Received: from wa-out-1112.google.com ([209.85.146.180]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J3nqU-0002Nt-TW for help-gnu-emacs@gnu.org; Sun, 16 Dec 2007 02:23:31 -0500 Original-Received: by wa-out-1112.google.com with SMTP id k34so2511160wah.10 for ; Sat, 15 Dec 2007 23:23:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; bh=4uZTAOCZEc2SaLL37IK218GSAMGgCBrSXdtohyeFpRg=; b=FZHtOeWglcnMJBsrq+j/fAh5+6UVi88ANrO2+FCmlzpSiEO9Gnsac64YS/u63kc3/gxbMVyKOcJyzQSlFNJfWn41jsWFNX4KHntzJBJLnu7pJsl6Z3g09XFDs9bWT1gqf1bDwK+wGiSAakNsGUdkzrrZvdm8XoEDZU2xlO7XPro= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=RzkISHAUZJn1rhx9MTHo+BPU88M3hfqJLd4ET3OST3z80X2sr9vW54rZH16lpkjjma/QUiegEKdfOxskxZBytvIUVOTJj9y6dS/Y02JkpihqZvvhmPIE4ABXtHv7M+7FalCVWi8lPoMPSc4Ey3o6tsbmVy10HQ73kB4OpiJNRw0= Original-Received: by 10.114.199.1 with SMTP id w1mr114833waf.38.1197789806681; Sat, 15 Dec 2007 23:23:26 -0800 (PST) Original-Received: from reforged ( [71.217.198.62]) by mx.google.com with ESMTPS id l30sm15346583waf.2007.12.15.23.23.23 (version=SSLv3 cipher=OTHER); Sat, 15 Dec 2007 23:23:23 -0800 (PST) In-Reply-To: <19df9387-2846-403c-a86d-d361f10645dd@d27g2000prf.googlegroups.com> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.1; i686-pc-linux-gnu) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:50107 Archived-At: --===============1364640773== Content-Type: multipart/signed; boundary="Sig_/_9VfN8D3Y+tvIt6LP3A/SL_"; protocol="application/pgp-signature"; micalg=PGP-SHA1 --Sig_/_9VfN8D3Y+tvIt6LP3A/SL_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 15 Dec 2007 08:48:45 -0800 (PST) rustom wrote: > On Dec 15, 3:24 am, Xah Lee wrote: > > recently i took some time to study the various syntax variations for > > keybinding in emacs. > > Here's a list: > > : > > : That did confuse me for a while. I decided it was time to make it at least = consistent in my configuration. After asking for some advice I settled on (kbd). This functi= on below takes the pain out of keybindings. I use it as follows: M-x insert-key-notation it then prompts for the key sequence, and generates the code. (defun insert-key-notation () "inject a complete \(kbd \"sequence\"\) with key notation for a key seque= nce given by prompt" (interactive) (insert "(kbd \"") (insert (format-kbd-macro (read-key-sequence "Key? " nil t))) (insert "\")") ) > Thanks Xah for an informative (for me at least) rant. Ive bookmarked > it! > 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. > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --Sig_/_9VfN8D3Y+tvIt6LP3A/SL_ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHZNI5dfRchrkBInkRAqg2AJ9kyn7SwmRgOoE90aEKifj9YRR4/ACgvnAd +58AovBVV98SRBhS4qCYreo= =rQBd -----END PGP SIGNATURE----- --Sig_/_9VfN8D3Y+tvIt6LP3A/SL_-- --===============1364640773== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1364640773==--