diff options
| author | StrawberryTea <look@strawberrytea.xyz> | 2024-03-09 15:19:44 -0600 |
|---|---|---|
| committer | Youmu <condy0919@gmail.com> | 2024-03-12 10:29:02 +0800 |
| commit | c2f48c9a26228a5bb0746dd64168ed76599496a9 (patch) | |
| tree | 03d999e9503333fc1ab20508c98d85dc35a2a3a6 /modes/mu4e | |
| parent | fe96b412f437f263f99492fe293499016b816a78 (diff) | |
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.
Diffstat (limited to 'modes/mu4e')
| -rw-r--r-- | modes/mu4e/evil-collection-mu4e.el | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modes/mu4e/evil-collection-mu4e.el b/modes/mu4e/evil-collection-mu4e.el index 96010d3..d6749a7 100644 --- a/modes/mu4e/evil-collection-mu4e.el +++ b/modes/mu4e/evil-collection-mu4e.el @@ -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." @@ -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 @@ -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 |
