From 6e57bdc5c691e3b0bcab7046a1f6f3f06515a48c Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sun, 17 Nov 2019 16:01:21 -0800 Subject: [PATCH] [notmuch] restore original movement keybindings not sure why these we rebound... Signed-off-by: William Casarin --- CHANGELOG.develop | 1 + layers/+email/notmuch/packages.el | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.develop b/CHANGELOG.develop index b42711dee..66fe82ed7 100644 --- a/CHANGELOG.develop +++ b/CHANGELOG.develop @@ -2236,6 +2236,7 @@ Other: - Try harder to find GitHub patch URL (thanks to Miciah Masters) - Open GitHub patches fullscreen - Add next and previous message bindings to notmuch-tree mode +- Change the C-n and C-p message bindings to their original N and P bindings **** OCaml - Allow initialization without requiring =opam= (thanks to Bernhard Schommer) - Fixed misused functions, =merlin= is a package not a layer diff --git a/layers/+email/notmuch/packages.el b/layers/+email/notmuch/packages.el index cb4f3d44a..21d1b07b8 100644 --- a/layers/+email/notmuch/packages.el +++ b/layers/+email/notmuch/packages.el @@ -86,18 +86,17 @@ (evilified-state-evilify-map notmuch-show-mode-map :mode notmuch-show-mode :bindings - ;; In notmuch-show-mode n would be bound to `notmuch-show-next-message` - ;; but the evilified state moves the `n' bound function to C-n while - ;; it's counterpart `notmuch-show-previous-message` remains bound to - ;; `p'. Adding a binding for the previous function to `C-p' becomes - ;; handy while navigation messages back and forth. - (kbd "C-p") 'notmuch-show-previous-message + (kbd "N") 'notmuch-show-next-message + (kbd "P") 'notmuch-show-previous-message + (kbd "p") 'notmuch-show-previous-open-message (kbd "n") 'notmuch-show-next-open-message (kbd "o") 'notmuch-show-open-or-close-all (kbd "O") 'spacemacs/notmuch-show-close-all) (evilified-state-evilify-map notmuch-tree-mode-map :mode notmuch-tree-mode :bindings + (kbd "N") 'notmuch-tree-next-message + (kbd "P") 'notmuch-tree-prev-message (kbd "d") 'spacemacs/notmuch-message-delete-down (kbd "D") 'spacemacs/notmuch-message-delete-up (kbd "n") 'notmuch-tree-next-matching-message