mu4e: add thread-mode commands

This commit adds a few commands to the mu4e-thread-mode-map. The purpose
is to bind these commads to the normal state map so that they don't get
overridden by motion state commands.
This commit is contained in:
StrawberryTea 2024-03-09 15:19:44 -06:00
parent 1ad283f5b7
commit ebe9defc1b
1 changed files with 10 additions and 1 deletions

View File

@ -82,7 +82,8 @@
mu4e-headers-mode-map
mu4e-view-mode-map
mu4e-compose-mode-map
mu4e-search-minor-mode-map))
mu4e-search-minor-mode-map
mu4e-thread-mode-map))
(defun evil-collection-mu4e-set-state ()
"Set the appropriate initial state of all mu4e modes."
@ -196,6 +197,12 @@
(mu4e-search-minor-mode-map
"J" mu4e-search-maildir)
(mu4e-thread-mode-map
[S-left] mu4e-thread-goto-root
[tab] mu4e-thread-fold-toggle
[C-tab] mu4e-thread-fold-toggle-goto-next
[backtab] mu4e-thread-fold-toggle-all)
(mu4e-view-mode-map
" " mu4e-view-scroll-up-or-next
[tab] shr-next-link
@ -297,5 +304,7 @@ is already done earlier."
(evil-collection-mu4e-set-state)
(evil-collection-mu4e-set-bindings))
(add-hook 'mu4e-thread-mode-hook #'evil-normalize-keymaps)
(provide 'evil-collection-mu4e))
;;; evil-collection-mu4e.el ends here