Toggling unread via j
or -
is slow.
Bind SPC
to toggle the unread
tag ergonomically.
(with-eval-after-load 'notmuch (keymap-set notmuch-search-mode-map "SPC" (defun my-notmuch-search-toggle-unread () "Toggle unread and advance to the next thread." (interactive) (let* ((tag "unread") (change (concat (if (member tag (notmuch-search-get-tags)) "-" "+") tag))) (notmuch-search-tag (list change)) (notmuch-search-next-thread)))))