mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
emacs: Allow the display of absolute dates in the header line.
Add `notmuch-show-relative-dates' to control whether the summary line in `notmuch-show' mode displays relative dates (e.g. '26 mins. ago') or the full date string from the message. Default to `t' for compatibility with the previous behaviour.
This commit is contained in:
parent
35343710a2
commit
fc37771a71
1 changed files with 8 additions and 1 deletions
|
@ -58,6 +58,11 @@ any given message."
|
|||
:group 'notmuch
|
||||
:type 'boolean)
|
||||
|
||||
(defcustom notmuch-show-relative-dates t
|
||||
"Display relative dates in the message summary 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'.")
|
||||
|
@ -405,7 +410,9 @@ current buffer, if possible."
|
|||
(setq message-start (point-marker))
|
||||
|
||||
(notmuch-show-insert-headerline headers
|
||||
(or (plist-get msg :date_relative)
|
||||
(or (if notmuch-show-relative-dates
|
||||
(plist-get msg :date_relative)
|
||||
nil)
|
||||
(plist-get headers :Date))
|
||||
(plist-get msg :tags) depth)
|
||||
|
||||
|
|
Loading…
Reference in a new issue