Skip to content

Commit c2f48c9

Browse files
LemonBreezescondy0919
authored andcommitted
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.
1 parent fe96b41 commit c2f48c9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

modes/mu4e/evil-collection-mu4e.el

+10-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@
8282
mu4e-headers-mode-map
8383
mu4e-view-mode-map
8484
mu4e-compose-mode-map
85-
mu4e-search-minor-mode-map))
85+
mu4e-search-minor-mode-map
86+
mu4e-thread-mode-map))
8687

8788
(defun evil-collection-mu4e-set-state ()
8889
"Set the appropriate initial state of all mu4e modes."
@@ -222,6 +223,12 @@ end of the buffer."
222223
(mu4e-search-minor-mode-map
223224
"J" mu4e-search-maildir)
224225

226+
(mu4e-thread-mode-map
227+
[S-left] mu4e-thread-goto-root
228+
[tab] mu4e-thread-fold-toggle
229+
[C-tab] mu4e-thread-fold-toggle-goto-next
230+
[backtab] mu4e-thread-fold-toggle-all)
231+
225232
(mu4e-view-mode-map
226233
" " mu4e-view-scroll-up-or-next
227234
[tab] shr-next-link
@@ -323,5 +330,7 @@ is already done earlier."
323330
(evil-collection-mu4e-set-state)
324331
(evil-collection-mu4e-set-bindings))
325332

333+
(add-hook 'mu4e-thread-mode-hook #'evil-normalize-keymaps)
334+
326335
(provide 'evil-collection-mu4e))
327336
;;; evil-collection-mu4e.el ends here

0 commit comments

Comments
 (0)