aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs
diff options
context:
space:
mode:
authorGravatar David Edmondson <dme@dme.org>2010-05-18 09:36:58 +0100
committerGravatar Carl Worth <cworth@cworth.org>2011-05-18 16:11:52 -0700
commit8ab43360740a1732c7606adf1c8c913fa8813851 (patch)
tree498d99d9e2ad1828cc9e4db5df66414869feabbc /emacs
parentf3384a322e46424ed0aec1c84ed4e3460dfb8a20 (diff)
emacs: Add `notmuch-show-always-show-subject', allowing control over
the display of collapsed messages. Signed-off-by: Jameson Rollins <jrollins@finestructure.net>
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-show.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index a1cf2d82..2ce3ebf8 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -64,6 +64,11 @@ any given message."
:group 'notmuch
:type 'boolean)
+(defcustom notmuch-show-always-show-subject t
+ "Should a collapsed message show the `Subject:' line?"
+ :group 'notmuch
+ :type 'boolean)
+
(defvar notmuch-show-markup-headers-hook '(notmuch-show-colour-headers)
"A list of functions called to decorate the headers listed in
`notmuch-message-headers'.")
@@ -621,8 +626,9 @@ current buffer, if possible."
;; If the subject of this message is the same as that of the
;; previous message, don't display it when this message is
;; collapsed.
- (when (not (string= notmuch-show-previous-subject
- bare-subject))
+ (when (or notmuch-show-always-show-subject
+ (not (string= notmuch-show-previous-subject
+ bare-subject)))
(forward-line 1))
(setq headers-start (point-marker)))
(setq headers-end (point-marker))