aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorÓscar Nájera <hi@oscarnajera.com>2022-05-08 00:12:46 +0200
committerÓscar Nájera <hi@oscarnajera.com>2022-05-08 00:12:46 +0200
commited3260c0e23a2a0a33a640e0fed620277be79184 (patch)
treeee83d163925a1027c9debf70f7b64903f7ced801 /config
parent08fa07618b1d1d40773d1969f31d6d63713f534b (diff)
downloaddotfiles-ed3260c0e23a2a0a33a640e0fed620277be79184.tar.gz
dotfiles-ed3260c0e23a2a0a33a640e0fed620277be79184.tar.bz2
dotfiles-ed3260c0e23a2a0a33a640e0fed620277be79184.zip
Make doom recognize notmuch buffers as important
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))