Switch to insert mode at the start of mu4e-compose
This commit is contained in:
parent
503d3f126f
commit
dab74d25b3
14
config.org
14
config.org
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue