From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rustom Newsgroups: gmane.emacs.help Subject: Re: emacs keybinding syntaxes bewilderment Date: Sun, 16 Dec 2007 00:25:46 -0800 (PST) Organization: http://groups.google.com Message-ID: <256d3391-7498-4890-bc70-c02084d4b9e8@e25g2000prg.googlegroups.com> References: <19df9387-2846-403c-a86d-d361f10645dd@d27g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1197794437 8089 80.91.229.12 (16 Dec 2007 08:40:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Dec 2007 08:40:37 +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 09:40:49 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 1J3p3I-0000uZ-PX for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Dec 2007 09:40:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J3p2z-0003HT-K6 for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Dec 2007 03:40:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e25g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 59.95.21.198 Original-X-Trace: posting.google.com 1197793546 30683 127.0.0.1 (16 Dec 2007 08:25:46 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 16 Dec 2007 08:25:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e25g2000prg.googlegroups.com; posting-host=59.95.21.198; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070508 Iceweasel/2.0.0.4 (Debian-2.0.0.4-0etch1), gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:154680 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:50108 Archived-At: On Dec 16, 12:22 pm, Mike Mattie wrote: > > 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 function 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 sequence given by prompt" > (interactive) > (insert "(kbd \"") > (insert (format-kbd-macro (read-key-sequence "Key? " nil t))) > (insert "\")") > ) Neat! Charming!! But why is kbd not in the elisp manual?