Make electric-quote-(local-)mode work when composing emails

electric-quote-(local-)mode used to have no effect because
`comment-use-syntax' was left to `undecided' so the electric mode was
not enabled for paragraphs.

Fixes https://github.com/djcb/mu/issues/997
This commit is contained in:
Christophe Troestler 2017-01-02 14:56:40 +01:00
parent fb8e148878
commit 9cb0772993
1 changed files with 2 additions and 0 deletions

View File

@ -407,6 +407,8 @@ buffers; lets remap its faces so it uses the ones for mu4e."
;; set this to allow mu4e to work when gnus-agent is unplugged in gnus
(set (make-local-variable 'message-send-mail-real-function) nil)
(make-local-variable 'message-default-charset)
;; Set to nil to enable `electric-quote-local-mode' to work:
(set (make-variable-buffer-local 'comment-use-syntax) nil)
;; message-mode has font-locking, but uses its own faces. Let's
;; use the mu4e-specific ones instead
(mu4e~compose-remap-faces)