aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.el
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-11-05 15:02:20 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-11-05 15:02:20 -0800
commit306e19f5ddec1b10a0e99ccc54823544187e7ac3 (patch)
tree28588df73ea9dc3954073076c480222db5134e99 /notmuch.el
parentafcd85ee71b9b835da88be371351f2ddab426714 (diff)
notmuch show: Move subject from one-line summary down to its own line.
And change the display code in emacs to display the one-line summary in inverse video.
Diffstat (limited to 'notmuch.el')
-rw-r--r--notmuch.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/notmuch.el b/notmuch.el
index 592c5ab5..4e649d44 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -436,9 +436,15 @@ which this thread was originally shown."
(defun notmuch-show-markup-header ()
(re-search-forward notmuch-show-header-begin-regexp)
- (next-line 2)
+ (forward-line 1)
(beginning-of-line)
(let ((beg (point)))
+ (end-of-line)
+ ; Inverse video for subject
+ (overlay-put (make-overlay beg (point)) 'face '((cons :inverse-video t)))
+ (beginning-of-line)
+ (forward-line 2)
+ (set 'beg (point))
(re-search-forward notmuch-show-header-end-regexp)
(overlay-put (make-overlay beg (match-beginning 0))
'invisible 'notmuch-show-header)))