From ab797994071a447c6241749f066f669a12bd342b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 28 Feb 2019 14:01:22 -0500 Subject: [PATCH] app/email: add :keep-visual prop on mu4e commands #975 --- modules/app/email/autoload/evil.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/app/email/autoload/evil.el b/modules/app/email/autoload/evil.el index d7b64c9c6..9cc24ea77 100644 --- a/modules/app/email/autoload/evil.el +++ b/modules/app/email/autoload/evil.el @@ -19,3 +19,9 @@ (goto-char beg) (dotimes (_ (count-lines beg end)) (mu4e-headers-mark-and-next command)))) + +;;;###autoload +(after! evil + ;; Fix #975 for mu4e commands, so they can move cursor in visual line mode + (evil-set-command-property 'mu4e-compose-goto-bottom :keep-visual t) + (evil-set-command-property 'mu4e-compose-goto-top :keep-visual t))