Evil: Bind more mu4e functions

master
Pierre Neidhardt 2017-07-31 07:59:54 +01:00
parent 6f7139a0d1
commit 1dd2e00f9c
1 changed files with 12 additions and 0 deletions

View File

@ -151,9 +151,21 @@
(when (require 'evil-mu4e nil t)
;; TODO: evil-mu4e needs a big overhaul, e.g. 'visual commands are not supported.
(evil-define-key 'motion mu4e-headers-mode-map
"zf" 'mu4e-headers-mark-for-flag
"zF" 'mu4e-headers-mark-for-unmark
"R" 'mu4e-headers-mark-for-refile
"p" 'mu4e-headers-toggle-include-related
"r" 'mu4e-compose-reply)
(evil-define-key 'motion mu4e-view-mode-map
"zf" 'mu4e-view-mark-for-flag
"zF" 'mu4e-view-mark-for-unflag
"R" 'mu4e-view-mark-for-refile
"r" 'mu4e-compose-reply
"za" 'mu4e-view-save-attachment-multi
"\M-j" 'mu4e-view-headers-next
"\M-k" 'mu4e-view-headers-prev
"h" 'evil-backward-char
"zh" 'mu4e-view-toggle-html
"gu" 'mu4e-view-go-to-url)
(evil-set-initial-state 'mu4e-compose-mode 'insert)))