mu4e: centralize mode-line context setting code

Add mu4e-context-in-modeline to handle all setting of context in the
mode-line, to address some corner-cases with the current setup.
This commit is contained in:
Dirk-Jan C. Binnema
2020-04-30 22:43:25 +03:00
parent 396368d1ad
commit 1919146b94
5 changed files with 15 additions and 15 deletions

View File

@ -443,8 +443,7 @@ buffers; lets remap its faces so it uses the ones for mu4e."
\\{message-mode-map}."
(progn
(use-local-map mu4e-compose-mode-map)
(make-local-variable 'global-mode-string)
(add-to-list 'global-mode-string '(:eval (mu4e-context-label)))
(mu4e-context-in-modeline)
(set (make-local-variable 'message-signature) mu4e-compose-signature)
;; set this to allow mu4e to work when gnus-agent is unplugged in gnus
(set (make-local-variable 'message-send-mail-real-function) nil)