aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.el
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-12-03 09:52:43 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-12-03 11:29:35 -0800
commit6945e7e103fdc10cb676571b313eac5abd62d0c6 (patch)
tree4d15bd918a4e3069ed0e4891362855c206960232 /notmuch.el
parent682102c2df45bb6642f2d5c538284fe48136d4ea (diff)
emacs: Highlight message-summary with background-color instead of inverse video.
Also, do this with a notmuch-message-summary-face variable so that the user can easily customize the desried effect.
Diffstat (limited to 'notmuch.el')
-rw-r--r--notmuch.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/notmuch.el b/notmuch.el
index 29bb9eb2..f3adfcf5 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -728,8 +728,7 @@ which this thread was originally shown."
(let ((beg (point-marker))
(summary-end (copy-marker (line-beginning-position 2)))
(btn nil))
- ; Inverse video for subject
- (overlay-put (make-overlay beg summary-end) 'face '(:inverse-video t))
+ (overlay-put (make-overlay beg summary-end) 'face 'notmuch-message-summary-face)
(setq btn (make-button beg summary-end :type 'notmuch-button-body-toggle-type))
(forward-line 1)
(end-of-line)
@@ -1046,6 +1045,12 @@ thread from that buffer can be show when done with this one)."
(interactive)
(goto-char (point-min)))
+(defface notmuch-message-summary-face
+ '((((class color) (background light)) (:background "#f0f0f0"))
+ (((class color) (background dark)) (:background "#303030")))
+ "Face for the single-line message summary in notmuch-show-mode."
+ :group 'notmuch)
+
(defface notmuch-tag-face
'((((class color)
(background dark))