From 9cb07729932e45778a562a07e484ec14fd9700ae Mon Sep 17 00:00:00 2001 From: Christophe Troestler Date: Mon, 2 Jan 2017 14:56:40 +0100 Subject: [PATCH] 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 --- mu4e/mu4e-compose.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mu4e/mu4e-compose.el b/mu4e/mu4e-compose.el index f2171a13..d03ec11b 100644 --- a/mu4e/mu4e-compose.el +++ b/mu4e/mu4e-compose.el @@ -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)