mirror of https://github.com/djcb/mu.git
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:
parent
d6337ade1c
commit
e1092c5f27
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue