mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix removal of unread hook when filtering messages
This commit is contained in:
@ -119,7 +119,7 @@
|
|||||||
(notmuch-show-refresh-view t))
|
(notmuch-show-refresh-view t))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +notmuch-expand-only-unread-h ()
|
(defun +notmuch-show-expand-only-unread-h ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((unread nil)
|
(let ((unread nil)
|
||||||
(open (notmuch-show-get-message-ids-for-open-messages)))
|
(open (notmuch-show-get-message-ids-for-open-messages)))
|
||||||
@ -127,7 +127,7 @@
|
|||||||
(when (member "unread" (notmuch-show-get-tags))
|
(when (member "unread" (notmuch-show-get-tags))
|
||||||
(setq unread t))))
|
(setq unread t))))
|
||||||
(when unread
|
(when unread
|
||||||
(let ((notmuch-show-hook (remove '+notmuch/expand-only-unread-hook notmuch-show-hook)))
|
(let ((notmuch-show-hook (remove '+notmuch-show-expand-only-unread-h notmuch-show-hook)))
|
||||||
(notmuch-show-filter-thread "tag:unread")))))
|
(notmuch-show-filter-thread "tag:unread")))))
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
;; (setq-hook! 'notmuch-show-mode-hook line-spacing 0)
|
;; (setq-hook! 'notmuch-show-mode-hook line-spacing 0)
|
||||||
|
|
||||||
;; only unfold unread messages in thread by default
|
;; only unfold unread messages in thread by default
|
||||||
(add-hook 'notmuch-show-hook '+notmuch-expand-only-unread-h)
|
(add-hook 'notmuch-show-hook '+notmuch-show-expand-only-unread-h)
|
||||||
|
|
||||||
(add-hook 'doom-real-buffer-functions #'notmuch-interesting-buffer)
|
(add-hook 'doom-real-buffer-functions #'notmuch-interesting-buffer)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user