aboutsummaryrefslogtreecommitdiff
path: root/emacs/notmuch-lib.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-lib.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-lib.el')
-rw-r--r--emacs/notmuch-lib.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index 45817e13..6fc71cc7 100644
--- a/emacs/notmuch-lib.el
+++ b/emacs/notmuch-lib.el
@@ -166,6 +166,7 @@ For example, if you wanted to remove an \"inbox\" tag and add an
(define-key map (kbd "M-=") 'notmuch-refresh-all-buffers)
(define-key map "G" 'notmuch-poll-and-refresh-this-buffer)
(define-key map "j" 'notmuch-jump-search)
+ (define-key map [remap undo] 'notmuch-tag-undo)
map)
"Keymap shared by all notmuch modes.")