aboutsummaryrefslogtreecommitdiff
path: root/emacs/notmuch-hello.el
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2022-02-12 16:27:40 -0400
committerDavid Bremner <david@tethera.net>2022-02-26 08:00:11 -0400
commit19cf3910a553e5325d8da3a73669c6c452dbd99c (patch)
tree96f8ef7a4afbe7e46f15303914d8dd396a2d4dd9 /emacs/notmuch-hello.el
parentcc2c3a383d12ce421c5ec1bdfb7bfacc60a0f368 (diff)
emacs: redirect undo to notmuch-tag-undo
The double remap is a bit ugly, but it seems better than adding another layer of keymaps for those modes where notmuch-tag-undo makes sense.
Diffstat (limited to 'emacs/notmuch-hello.el')
-rw-r--r--emacs/notmuch-hello.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index beb25382..4662e704 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -710,6 +710,9 @@ with `notmuch-hello-query-counts'."
;; that when we modify map it does not modify widget-keymap).
(let ((map (make-composed-keymap (list (make-sparse-keymap) widget-keymap))))
(set-keymap-parent map notmuch-common-keymap)
+ ;; Currently notmuch-hello-mode supports free text entry, but not
+ ;; tagging operations, so provide standard undo.
+ (define-key map [remap notmuch-tag-undo] #'undo)
map)
"Keymap for \"notmuch hello\" buffers.")