mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-23 01:44:52 +01:00
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:
parent
e229bfa5aa
commit
9ccd978665
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue