mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
emacs: Add custom `notmuch-show-elide-same-subject'
This controls the appearance of collapsed messages in notmuch-show mode, avoiding redundancy for repeated subject). Remove `notmuch-show-always-show-subject'. Signed-off-by: Jameson Rollins <jrollins@finestructure.net>
This commit is contained in:
parent
8ab4336074
commit
4f04d2734f
1 changed files with 9 additions and 3 deletions
|
@ -64,6 +64,12 @@ any given message."
|
||||||
:group 'notmuch
|
:group 'notmuch
|
||||||
:type 'boolean)
|
:type 'boolean)
|
||||||
|
|
||||||
|
(defcustom notmuch-show-elide-same-subject nil
|
||||||
|
"Do not show the subject of a collapsed message if it is the
|
||||||
|
same as that of the previous message."
|
||||||
|
:group 'notmuch
|
||||||
|
:type 'boolean)
|
||||||
|
|
||||||
(defcustom notmuch-show-always-show-subject t
|
(defcustom notmuch-show-always-show-subject t
|
||||||
"Should a collapsed message show the `Subject:' line?"
|
"Should a collapsed message show the `Subject:' line?"
|
||||||
:group 'notmuch
|
:group 'notmuch
|
||||||
|
@ -626,7 +632,7 @@ 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 (or notmuch-show-always-show-subject
|
(when (and notmuch-show-elide-same-subject
|
||||||
(not (string= notmuch-show-previous-subject
|
(not (string= notmuch-show-previous-subject
|
||||||
bare-subject)))
|
bare-subject)))
|
||||||
(forward-line 1))
|
(forward-line 1))
|
||||||
|
|
Loading…
Reference in a new issue