From ed3260c0e23a2a0a33a640e0fed620277be79184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Sun, 8 May 2022 00:12:46 +0200 Subject: Make doom recognize notmuch buffers as important --- config/doom/config.org | 10 ++++++++++ 1 file changed, 10 insertions(+) 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)) -- cgit v1.2.3