Switch to insert mode at the start of mu4e-compose

This commit is contained in:
TEC 2022-09-18 12:25:56 +08:00
parent 503d3f126f
commit dab74d25b3
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 12 additions and 2 deletions

View File

@ -6270,8 +6270,7 @@ We can also use this a signature,
(setq message-signature mu4e-from-name)
#+end_src
Lastly, I've got a few extra addresses I'd like ~+mu4e-set-from-address-h~ to be
aware of.
I've got a few extra addresses I'd like ~+mu4e-set-from-address-h~ to be aware of.
#+begin_src emacs-lisp
(defun +mu4e-update-personal-addresses ()
@ -6297,6 +6296,17 @@ aware of.
(+mu4e-update-personal-addresses))
#+end_src
When composing an email, I think it would make more sense to start off in =insert=
mode than =normal= mode, which can be accomplished via a compose hook.
#+begin_src emacs-lisp
(defun +mu4e-evil-enter-insert-mode ()
(when (eq (bound-and-true-p evil-state) 'normal)
(call-interactively #'evil-append)))
(add-hook 'mu4e-compose-mode-hook #'+mu4e-evil-enter-insert-mode 90)
#+end_src
**** Working with the Org mailing list
:PROPERTIES:
:header-args:emacs-lisp: :noweb-ref mu4e-conf