From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..) Date: Wed, 04 Sep 2002 11:11:22 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200209041511.g84FBMi19168@rum.cs.yale.edu> References: <200208271621.g7RGLNm30516@rum.cs.yale.edu> <5xhehfe3aj.fsf@kfs2.cua.dk> <874rdfaytt.fsf@pot.cnuce.cnr.it> <5xvg5sh06u.fsf@kfs2.cua.dk> <20020830235528.GA13207@gnu.org> <87ofbji88u.fsf@emacswiki.org> <87sn0scb0b.fsf@emacswiki.org> <87bs7er99v.fsf@emacswiki.org> <877ki2r8nr.fsf@emacswiki.org> <87y9aipop2.fsf@emacswiki.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031152282 29603 127.0.0.1 (4 Sep 2002 15:11:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Sep 2002 15:11:22 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17mboP-0007hK-00 for ; Wed, 04 Sep 2002 17:11:21 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17mcNd-0001vO-00 for ; Wed, 04 Sep 2002 17:47:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17mbpx-0006yh-00; Wed, 04 Sep 2002 11:12:57 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17mboV-0006qI-00 for emacs-devel@gnu.org; Wed, 04 Sep 2002 11:11:27 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17mboT-0006pV-00 for emacs-devel@gnu.org; Wed, 04 Sep 2002 11:11:26 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17mboS-0006pJ-00 for emacs-devel@gnu.org; Wed, 04 Sep 2002 11:11:25 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g84FBMi19168; Wed, 4 Sep 2002 11:11:22 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Alex Schroeder Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7465 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7465 > (defkeymap my-keymap > (let ((map (make-sparse-keymap))) > (define-key map (read-kbd-macro "") 'bbdb) > map) > "Keymap to demonstrate `defkeymap'.") How about allowing a more declarative form like (defkeymap my-mode-map '(([mouse-1] . foo) (([mouse-2] "f" "e" "\C-m") . open-file)) "Keymap for My mode." :group 'foo :inherit his-mode-map) -- Stefan