aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch-hello.el
diff options
context:
space:
mode:
authorGravatar Nelson Elhage <nelhage@MIT.EDU>2010-05-14 13:15:38 -0400
committerGravatar Carl Worth <cworth@cworth.org>2010-06-03 18:17:03 -0700
commit9ccd978665103a209861b1ea7e1fb3776018bba9 (patch)
tree626eae3d50f39fec892918deb8f7f0981fe10293 /emacs/notmuch-hello.el
parente229bfa5aa68ce0e9076b04cac7774a754b47ab2 (diff)
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.
Diffstat (limited to 'emacs/notmuch-hello.el')
-rw-r--r--emacs/notmuch-hello.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 02d8f0c4..aa270727 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -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)