]> rtime.felk.cvut.cz Git - notmuch.git/commitdiff
emacs: Use the header line to show the subject of the thread.
authorDavid Edmondson <dme@dme.org>
Mon, 8 Nov 2010 14:18:25 +0000 (14:18 +0000)
committerCarl Worth <cworth@cworth.org>
Fri, 12 Nov 2010 01:06:04 +0000 (17:06 -0800)
emacs/notmuch-show.el

index 3a394d0f385a8468e64231b9b006595d7c43bcc5..0d3c4c2789d80043af36dac4dd598609ab898bde 100644 (file)
@@ -550,6 +550,10 @@ function is used. "
     ;; Move straight to the first open message
     (if (not (notmuch-show-message-visible-p))
        (notmuch-show-next-open-message))
+
+    ;; Set the header line to the subject of the first open message.
+    (setq header-line-format (notmuch-show-strip-re (notmuch-show-get-subject)))
+
     (notmuch-show-mark-read)))
 
 (defvar notmuch-show-stash-map