mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 20:38:08 +01:00
emacs: Add `notmuch-show-always-show-subject', allowing control over
the display of collapsed messages. Signed-off-by: Jameson Rollins <jrollins@finestructure.net>
This commit is contained in:
parent
f3384a322e
commit
8ab4336074
1 changed files with 8 additions and 2 deletions
|
@ -64,6 +64,11 @@ any given message."
|
||||||
:group 'notmuch
|
:group 'notmuch
|
||||||
:type 'boolean)
|
: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)
|
(defvar notmuch-show-markup-headers-hook '(notmuch-show-colour-headers)
|
||||||
"A list of functions called to decorate the headers listed in
|
"A list of functions called to decorate the headers listed in
|
||||||
`notmuch-message-headers'.")
|
`notmuch-message-headers'.")
|
||||||
|
@ -621,8 +626,9 @@ current buffer, if possible."
|
||||||
;; If the subject of this message is the same as that of the
|
;; If the subject of this message is the same as that of the
|
||||||
;; previous message, don't display it when this message is
|
;; previous message, don't display it when this message is
|
||||||
;; collapsed.
|
;; collapsed.
|
||||||
(when (not (string= notmuch-show-previous-subject
|
(when (or notmuch-show-always-show-subject
|
||||||
bare-subject))
|
(not (string= notmuch-show-previous-subject
|
||||||
|
bare-subject)))
|
||||||
(forward-line 1))
|
(forward-line 1))
|
||||||
(setq headers-start (point-marker)))
|
(setq headers-start (point-marker)))
|
||||||
(setq headers-end (point-marker))
|
(setq headers-end (point-marker))
|
||||||
|
|
Loading…
Reference in a new issue