[PATCH 2/2] notmuch.el: Colour cited regions and signatures with message-cited-text-face

Sebastian Spaeth Sebastian at SSpaeth.de
Tue Apr 6 00:39:20 PDT 2010


From: David Edmondson <dme at dme.org>

Patch from mail id:1266226909-19360-1-git-send-email-dme at dme.org with a fix in id:873a12hl3f.fsf at aw.hh.sledj.net

Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
 emacs/notmuch-show.el |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index f172f6b..353b57d 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -708,14 +708,16 @@ is what to put on the button."
 	(let* ((sig-start (match-beginning 0))
 	       (sig-end (match-end 0))
 	       (sig-lines (1- (count-lines sig-start end))))
-	  (if (<= sig-lines notmuch-show-signature-lines-max)
-	      (notmuch-show-region-to-button
-	       sig-start
-	       end
-	       "signature"
-	       indent
-	       (format notmuch-show-signature-button-format sig-lines)
-	       ))))))
+    (if (<= sig-lines notmuch-show-signature-lines-max)
+      (progn
+        (overlay-put (make-overlay sig-start end) 'face 'message-cited-text-face)
+        (notmuch-show-region-to-button
+         sig-start
+         end
+         "signature"
+         indent
+         (format notmuch-show-signature-button-format sig-lines)
+         )))))))
 
 (defun notmuch-show-markup-part (beg end depth)
   (if (re-search-forward notmuch-show-part-begin-regexp nil t)
-- 
1.6.3.3



More information about the notmuch mailing list