mu4e: update context handling

Make mu4e-context-autoswitch works a before we updated the pong-handler

Avoid unnecessary mu4e~start int he composer.
This commit is contained in:
Dirk-Jan C. Binnema
2020-02-18 22:23:16 +02:00
parent 000c19e505
commit c09a9c4372
3 changed files with 5 additions and 3 deletions

View File

@ -456,7 +456,8 @@ buffers; lets remap its faces so it uses the ones for mu4e."
(setq message-default-charset 'utf-8))
;; make sure mu4e is started in the background (ie. we don't want to error
;; out when sending the message; better to do it now if there's a problem)
(mu4e~start) ;; start mu4e in background, if needed
(unless (mu4e-running-p)
(mu4e~start)) ;; start mu4e in background, if needed
(mu4e~compose-register-message-save-hooks)
;; set the default directory to the user's home dir; this is probably more
;; useful e.g. when finding an attachment file the directory the current