summaryrefslogtreecommitdiff
path: root/modes/mu4e
diff options
context:
space:
mode:
authorMilan Glacier <dev@milanglacier.com>2023-04-16 14:10:40 -0400
committerJames <1227856+jojojames@users.noreply.github.com>2023-04-30 12:27:31 -0700
commit0a550bbbc2a7c779fa2d8330efbcd6c2a6ac5db8 (patch)
tree0ec0f6c00d7f01c42316175135044669409c8235 /modes/mu4e
parent14af794d5be61ae068e0d481b31bbaeecd6bacfe (diff)
mu4e: clean up code.
Diffstat (limited to 'modes/mu4e')
-rw-r--r--modes/mu4e/evil-collection-mu4e.el11
1 files changed, 5 insertions, 6 deletions
diff --git a/modes/mu4e/evil-collection-mu4e.el b/modes/mu4e/evil-collection-mu4e.el
index d71064c..6a06376 100644
--- a/modes/mu4e/evil-collection-mu4e.el
+++ b/modes/mu4e/evil-collection-mu4e.el
@@ -101,6 +101,10 @@
"Set initial state in `mu4e-compose-mode' to \='insert."
(evil-set-initial-state 'mu4e-compose-mode 'insert))
+ (defun evil-collection-mu4e-mark-thread-as-read ()
+ (interactive)
+ (mu4e-headers-mark-thread nil '(read)))
+
(defvar evil-collection-mu4e-mode-map-bindings
`((mu4e-main-mode-map
"J" mu4e~headers-jump-to-maildir
@@ -172,9 +176,7 @@
"zd" mu4e-headers-toggle-skip-duplicates
"gl" mu4e-show-log
"gv" mu4e-select-other-view
- "T" (lambda ()
- (interactive)
- (mu4e-headers-mark-thread nil '(read))))
+ "T" evil-collection-mu4e-mark-thread-as-read)
(mu4e-compose-mode-map
"gg" mu4e-compose-goto-top
@@ -238,9 +240,6 @@
"." mu4e-view-raw-message
,(kbd "C--") mu4e-headers-split-view-shrink
,(kbd "C-+") mu4e-headers-split-view-grow
- "T" (lambda ()
- (interactive)
- (mu4e-headers-mark-thread nil '(read)))
,@(when evil-want-C-u-scroll
'("\C-u" evil-scroll-up))))
"All evil-mu4e bindings.")