mu4e-headers: found-handler: set up threads-mode in headers buffer

Ensure we're in headers-mode when setting up thread-mode.
This commit is contained in:
Dirk-Jan C. Binnema 2023-05-23 22:25:06 +03:00
parent eafc81f168
commit cd3c7b4c61
1 changed files with 4 additions and 4 deletions

View File

@ -870,10 +870,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))