From e122c557187991309eae129884e3d0b663b8c836 Mon Sep 17 00:00:00 2001 From: Max Nickel Date: Sat, 26 Oct 2019 14:05:40 -0400 Subject: [PATCH] add basic bindings for notmuch --- modules/email/notmuch/config.el | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/modules/email/notmuch/config.el b/modules/email/notmuch/config.el index 4a6536359..1c5c1416c 100644 --- a/modules/email/notmuch/config.el +++ b/modules/email/notmuch/config.el @@ -56,7 +56,20 @@ (add-hook! '(notmuch-show-mode-hook notmuch-tree-mode-hook notmuch-search-mode-hook) - #'hide-mode-line-mode)) + #'hide-mode-line-mode) + + (map! + :localleader + :map (notmuch-search-mode-map notmuch-tree-mode-map notmuch-show-mode-map) + :desc "compose email" "c" #'+notmuch/compose + :desc "fetch new email" "u" #'+notmuch/update + :desc "quit notmuch" "q" #'+notmuch/quit + :map notmuch-search-mode-map + :desc "mark as deleted" "d" #'+notmuch/search-delete + :desc "mark as spam" "d" #'+notmuch/search-spam + :map notmuch-tree-mode-map + :desc "mark as deleted" "d" #'+notmuch/tree-delete + :desc "mark as spam" "d" #'+notmuch/tree-spam)) (use-package! org-mime @@ -73,4 +86,3 @@ :when (featurep! :completion helm) :commands helm-notmuch :after notmuch) -