[PATCH] emacs: Use the header line to show the subject of the thread.

David Edmondson dme at dme.org
Mon Nov 8 06:18:25 PST 2010


---

This is particularly useful when paging through a long message.

 emacs/notmuch-show.el |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 08654f1..1046bf0 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -576,6 +576,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
-- 
1.7.2.3



More information about the notmuch mailing list