Ensure mu4e-thread-mode in only enabled only in headers buffer

This commit is contained in:
Anders Johansson 2023-05-09 13:34:11 +02:00
parent 581f8d7e92
commit 2844ec0ac2
1 changed files with 4 additions and 4 deletions

View File

@ -867,10 +867,10 @@ after the end of the search results."
(setq mu4e--search-view-target nil
mu4e--search-msgid-target nil)
(when (mu4e~headers-docid-at-point)
(mu4e~headers-highlight (mu4e~headers-docid-at-point)))))
;; maybe enable thread folding
(when mu4e-search-threads
(mu4e-thread-mode))
(mu4e~headers-highlight (mu4e~headers-docid-at-point)))
;; maybe enable thread folding
(when mu4e-search-threads
(mu4e-thread-mode))))
;; run-hooks
(run-hooks 'mu4e-headers-found-hook))