mu4e: make global-mode-string buffer-local
Make `global-mode-string' local in all buffers where we use it, so we don't leak the "context" string outside mu4e. Also add the context string to the compose buffer's modeline. This fixes #740.
This commit is contained in:
@ -734,10 +734,11 @@ FUNC should be a function taking two arguments:
|
||||
(make-local-variable 'mu4e~view-attach-map)
|
||||
(make-local-variable 'mu4e~view-cited-hidden)
|
||||
|
||||
(setq buffer-undo-list t ;; don't record undo info
|
||||
global-mode-string ;; show context in mode-line
|
||||
'(:eval (mu4e-context-label)))
|
||||
|
||||
;; show context in mode-string
|
||||
(set (make-local-variable 'global-mode-string) '(:eval (mu4e-context-label)))
|
||||
|
||||
(setq buffer-undo-list t);; don't record undo info
|
||||
|
||||
;; autopair mode gives error when pressing RET
|
||||
;; turn it off
|
||||
(when (boundp 'autopair-dont-activate)
|
||||
|
||||
Reference in New Issue
Block a user