X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch.el;h=593374758c7139a1120a2281f9c6b87e16db99f5;hb=2b433736a56ec1ccac67ada9cc81337a157a45a2;hp=4a9223e4dfa8f1f0e95c76e10219a8f1a1863581;hpb=128b6259ee327adf9189b81034b3b6962e8b9dbc;p=notmuch diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 4a9223e4..59337475 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -207,6 +207,7 @@ For a mouse binding, return nil." (define-key map "m" 'notmuch-mua-mail) (define-key map "s" 'notmuch-search) (define-key map "o" 'notmuch-search-toggle-order) + (define-key map "c" 'notmuch-search-stash-map) (define-key map "=" 'notmuch-search-refresh-view) (define-key map "G" 'notmuch-search-poll-and-refresh-view) (define-key map "t" 'notmuch-search-filter-by-tag) @@ -221,6 +222,18 @@ For a mouse binding, return nil." "Keymap for \"notmuch search\" buffers.") (fset 'notmuch-search-mode-map notmuch-search-mode-map) +(defvar notmuch-search-stash-map + (let ((map (make-sparse-keymap))) + (define-key map "i" 'notmuch-search-stash-thread-id) + map) + "Submap for stash commands") +(fset 'notmuch-search-stash-map notmuch-search-stash-map) + +(defun notmuch-search-stash-thread-id () + "Copy thread ID of current thread to kill-ring." + (interactive) + (notmuch-common-do-stash (notmuch-search-find-thread-id))) + (defvar notmuch-search-query-string) (defvar notmuch-search-target-thread) (defvar notmuch-search-target-line)