Skip to content

Commit

Permalink
mu4e: add thread-mode commands
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
LemonBreezes authored and condy0919 committed Mar 12, 2024
1 parent fe96b41 commit c2f48c9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modes/mu4e/evil-collection-mu4e.el
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -222,6 +223,12 @@ end of the buffer."
(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
Expand Down Expand Up @@ -323,5 +330,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

0 comments on commit c2f48c9

Please sign in to comment.