* mu4e-compose.el: activate mu4e-compose-mode earlier, so send/sent hooks work

This commit is contained in:
djcb 2012-05-14 22:47:39 +03:00
parent a1c4e2f21e
commit 3bbff2e9ad
1 changed files with 4 additions and 4 deletions

View File

@ -520,7 +520,10 @@ Gnus' `message-mode'."
(unless (eq compose-type 'edit)
(when message-signature
(message-insert-signature)))
;; set compose mode -- so now hooks can run
(mu4e-compose-mode)
;; setup the fcc-stuff, if needed
(add-hook 'message-send-hook
(lambda ()
@ -535,9 +538,6 @@ Gnus' `message-mode'."
(setq mu4e-sent-func 'mu4e-sent-handler)
(mu4e~proc-sent (buffer-file-name) mu4e-drafts-folder)) nil t))
;; set compose mode -- so now hooks can run
(mu4e-compose-mode)
;; buffer is not user-modified yet
(mu4e~compose-set-friendly-buffer-name compose-type)
(set-buffer-modified-p nil)