emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..)


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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]