       "a" 'notmuch-search-archive-thread
       "c" 'compose-mail
       "d" 'evil-collection-notmuch-search-toggle-delete
+      "!" 'evil-collection-notmuch-search-toggle-unread
+      "=" 'evil-collection-notmuch-search-toggle-flagged
       "q" 'notmuch-bury-or-kill-this-buffer
       "r" 'notmuch-search-reply-to-thread-sender
       "t" 'notmuch-search-filter-by-tag

                                         notmuch-search-mode-map
                                         notmuch-search-stash-map))

(defun evil-collection-notmuch-show-toggle-delete ()
  "Toggle deleted tag for message."
  (interactive)
  (if (member "deleted" (notmuch-show-get-tags))
      (notmuch-show-tag (list "-deleted"))
    (notmuch-show-tag (list "+deleted")))
  (evil-next-line))

(defun evil-collection-notmuch-search-toggle-delete ()
  "Toggle deleted tag for message."
  (interactive)
  (if (member "deleted" (notmuch-search-get-tags))
      (notmuch-search-tag (list "-deleted"))
    (notmuch-search-tag (list "+deleted")))
  (evil-next-line))

(defun evil-collection-notmuch-tree-toggle-delete ()
  "Toggle deleted tag for message."
  (interactive)
  (if (member "deleted" (notmuch-search-get-tags))
      (notmuch-tree-tag (list "-deleted"))
    (notmuch-tree-tag (list "+deleted")))
  (evil-next-line))

(defun evil-collection-notmuch-hello-ret ()
  (interactive)

    "Z" 'notmuch-tree-from-show-current-query
    "a" 'notmuch-show-archive-message-then-next-or-next-thread
    "d" 'evil-collection-notmuch-show-toggle-delete
    "=" 'evil-collection-notmuch-show-toggle-flagged
    "H" 'notmuch-show-toggle-visibility-headers
    "gj" 'notmuch-show-next-open-message
    "gk" 'notmuch-show-previous-open-message
    "]]" 'notmuch-show-next-message
    "[[" 'notmuch-show-previous-message
    (kbd "C-j") 'notmuch-show-next-message
    (kbd "C-k") 'notmuch-show-previous-message
    (kbd "M-j") 'notmuch-show-next-thread-show
    (kbd "M-k") 'notmuch-show-previous-thread-show
    "r" 'notmuch-show-reply-sender
