mu4e: restore mu4e-compose-type in compose-buffer

Seems the `mu4e-compose-type' is always nil when we enter the
compose (it is set when executing the pre-hooks though). It can be
useful in the compose buffer as well, so restore it.
This commit is contained in:
djcb 2016-11-05 10:18:23 +02:00
parent d6337ade1c
commit e1092c5f27
1 changed files with 6 additions and 0 deletions

View File

@ -579,6 +579,12 @@ tempfile)."
(mu4e~compose-hide-headers)
;; switch on the mode
(mu4e-compose-mode)
;; set mu4e-compose-type once more for this buffer,
;; we loose it after the mode-change, it seems
(set (make-local-variable 'mu4e-compose-type) compose-type)
(put 'mu4e-compose-type 'permanent-local t)
(when mu4e-compose-in-new-frame
;; make sure to close the frame when we're done with the message these are
;; all buffer-local;