]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: tree: make b bounce a message and backspace scroll message pane up
authorMark Walters <markwalters1009@gmail.com>
Sun, 25 Sep 2016 07:18:10 +0000 (08:18 +0100)
committerDavid Bremner <david@tethera.net>
Mon, 26 Sep 2016 16:01:31 +0000 (13:01 -0300)
This tweaks the keybindings in tree-mode. It make b do bounce/resend
matching show-mode. Since b was already bound to scroll message pane
back, we now use backspace for that.

This means space/backspace scroll the message pane forwards/backwards,
and page-up/page-down scrolls the tree pane forwards/backwards.

emacs/notmuch-tree.el

index 6e5797e970f6377ba0ba5ca79d7504c07c7dc755..658c4f90870dfe4de726514b41908b53dde85661 100644 (file)
@@ -251,6 +251,7 @@ FUNC."
     (define-key map "w" 'notmuch-show-save-attachments)
     (define-key map "v" 'notmuch-show-view-all-mime-parts)
     (define-key map "c" 'notmuch-show-stash-map)
+    (define-key map "b" 'notmuch-show-resend-message)
 
     ;; these apply to the message pane
     (define-key map (kbd "M-TAB") (notmuch-tree-to-message-pane #'notmuch-show-previous-button))
@@ -282,7 +283,7 @@ FUNC."
     (define-key map "+" 'notmuch-tree-add-tag)
     (define-key map "*" 'notmuch-tree-tag-thread)
     (define-key map " " 'notmuch-tree-scroll-or-next)
-    (define-key map "b" 'notmuch-tree-scroll-message-window-back)
+    (define-key map (kbd "DEL") 'notmuch-tree-scroll-message-window-back)
     map))
 (fset 'notmuch-tree-mode-map notmuch-tree-mode-map)