From: Carl Worth <cworth@cworth.org>
Date: Sat, 20 Feb 2010 20:23:13 +0000 (-0800)
Subject: Change the stash keybinding from 'z' to 'c'. And use 'i' for message ID.
X-Git-Tag: 0.1~85
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=4e76865c0d842fb7bf85fffee1d383062c3a7160;p=obsolete%2Fnotmuch-old

Change the stash keybinding from 'z' to 'c'. And use 'i' for message ID.

In spite of being implemented with the word "stash" in the function
names, the documentation (and hence help strings) for each function
already use the word "Copy" to describe the action. So 'c' is a much
more natural key-binding, (particularly since 'z' didn't map to any
real word anyway).

We also use 'i' for the message ID copying of the submap. This is
intended to align mnemonically with the "id:" prefix already used
for message IDs.
---

diff --git a/notmuch.el b/notmuch.el
index 97f7e0c8..732ce53d 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -57,7 +57,7 @@
     (define-key map "d" 'notmuch-show-stash-date)
     (define-key map "F" 'notmuch-show-stash-filename)
     (define-key map "f" 'notmuch-show-stash-from)
-    (define-key map "m" 'notmuch-show-stash-message-id)
+    (define-key map "i" 'notmuch-show-stash-message-id)
     (define-key map "s" 'notmuch-show-stash-subject)
     (define-key map "T" 'notmuch-show-stash-tags)
     (define-key map "t" 'notmuch-show-stash-to)
@@ -83,6 +83,7 @@
     (define-key map "w" 'notmuch-show-save-attachments)
     (define-key map "V" 'notmuch-show-view-raw-message)
     (define-key map "v" 'notmuch-show-view-all-mime-parts)
+    (define-key map "c" 'notmuch-show-stash-map)
     (define-key map "b" 'notmuch-show-toggle-current-body)
     (define-key map "h" 'notmuch-show-toggle-current-header)
     (define-key map "-" 'notmuch-show-remove-tag)
@@ -96,7 +97,6 @@
     (define-key map "n" 'notmuch-show-next-message)
     (define-key map (kbd "DEL") 'notmuch-show-rewind)
     (define-key map " " 'notmuch-show-advance-marking-read-and-archiving)
-    (define-key map "z" 'notmuch-show-stash-map)
     map)
   "Keymap for \"notmuch show\" buffers.")
 (fset 'notmuch-show-mode-map notmuch-show-mode-map)