aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/doom/config.org10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/doom/config.org b/config/doom/config.org
index aaff478..8bab6f4 100644
--- a/config/doom/config.org
+++ b/config/doom/config.org
@@ -273,6 +273,16 @@ this new window.
("flagged" . notmuch-search-flagged-face)
("unread" . notmuch-search-unread-face)))
+ (add-hook! 'doom-real-buffer-functions
+ (defun notmuch-interesting-buffer (b)
+ "Whether the current buffer's major-mode is a notmuch mode."
+ (with-current-buffer b
+ (memq major-mode '(notmuch-show-mode
+ notmuch-search-mode
+ notmuch-tree-mode
+ notmuch-hello-mode
+ notmuch-message-mode)))))
+
(defun notmuch-toggle-tag (tag tags-present)
(concat (if (member tag tags-present) "-" "+") tag))