emacs: notmuch-hello: Make widget-keymap a parent of notmuch-hello-keymap

This lets us pick up later changes to widget-keymap if the user
customizes it in some way. This is the recommended way to use
`widget-keymap', according to its help.
This commit is contained in:
Nelson Elhage 2010-05-14 13:15:38 -04:00 committed by Carl Worth
parent e229bfa5aa
commit 9ccd978665

View file

@ -262,7 +262,8 @@ should be. Returns a cons cell `(tags-per-line width)'."
(defvar notmuch-hello-mode-map
(let ((map (copy-keymap widget-keymap)))
(let ((map (make-sparse-keymap)))
(set-keymap-parent map widget-keymap)
(define-key map "v" '(lambda () "Display the notmuch version" (interactive)
(message "notmuch version %s" (notmuch-version))))
(define-key map "?" 'notmuch-help)