|
From: | Stefan Monnier |
Subject: | Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..) |
Date: | Wed, 04 Sep 2002 11:11:22 -0400 |
> (defkeymap my-keymap > (let ((map (make-sparse-keymap))) > (define-key map (read-kbd-macro "<f11>") '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
[Prev in Thread] | Current Thread | [Next in Thread] |