[notmuch] modifying emacs keymap

Tassilo Horn tassilo at member.fsf.org
Mon Dec 28 14:27:30 PST 2009

Jameson Graef Rollins <jrollins at phys.columbia.edu> writes:

Hi Jameson,

> (add-hook 'notmuch-search-mode
>   (define-key notmuch-search-mode-map "A" 'notmuch-show-mark-read-then-archive-thread)
> )

`notmuch-search-mode' is no hook, and even if it was, you couldn't add
what you like, because that's no function.  You would need to define a
function that doesn that or wrap it in a lambda function.

Anyway, this should do the trick:

(define-key notmuch-search-mode-map "A" 'notmuch-show-mark-read-then-archive-thread)


More information about the notmuch mailing list