Merge pull request #934 from antoine-levitt/master

mu4e: Don't erase global-mode-string with context label, but add to it
This commit is contained in:
Dirk-Jan C. Binnema
2016-11-05 10:52:35 +02:00
committed by GitHub
4 changed files with 18 additions and 14 deletions

View File

@ -402,7 +402,8 @@ buffers; lets remap its faces so it uses the ones for mu4e."
\\{message-mode-map}."
(progn
(use-local-map mu4e-compose-mode-map)
(set (make-local-variable 'global-mode-string) '(:eval (mu4e-context-label)))
(make-local-variable 'global-mode-string)
(add-to-list 'global-mode-string '(:eval (mu4e-context-label)))
(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)
@ -501,7 +502,8 @@ buffers; lets remap its faces so it uses the ones for mu4e."
(rename-buffer (generate-new-buffer-name
(truncate-string-to-width str
mu4e~compose-buffer-max-name-length
nil nil t)))))
nil nil t)
(buffer-name)))))
(defun mu4e~compose-crypto-reply (parent compose-type)
"When composing a reply to an encrypted message, we can