X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-show.el;h=f872cdfe00d44c1a498ad1ad46abe6b4ee84d1c4;hb=42e146a3a20c1ca2e1a9d6fd2d5e5e9d03a06641;hp=4b1baf38dd2a5bcc3fc64145fb15407943be7bd1;hpb=43423e9c88e2c054ecd8328e82837867121af281;p=notmuch diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 4b1baf38..f872cdfe 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -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'.") @@ -189,7 +194,8 @@ any given message." (if (re-search-forward "(\\([^()]*\\))$" (line-end-position) t) (let ((inhibit-read-only t)) (replace-match (concat "(" - (mapconcat 'identity tags " ") + (propertize (mapconcat 'identity tags " ") + 'face 'notmuch-tag-face) ")")))))) (defun notmuch-show-insert-headerline (headers date tags depth) @@ -201,7 +207,8 @@ message at DEPTH in the current thread." " (" date ") (" - (mapconcat 'identity tags " ") + (propertize (mapconcat 'identity tags " ") + 'face 'notmuch-tag-face) ")\n") (overlay-put (make-overlay start (point)) 'face 'notmuch-message-summary-face))) @@ -405,7 +412,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) @@ -547,7 +556,9 @@ function is used. " (let ((map (make-sparse-keymap))) (define-key map "?" 'notmuch-help) (define-key map "q" 'kill-this-buffer) + (define-key map (kbd "") 'widget-backward) (define-key map (kbd "M-TAB") 'notmuch-show-previous-button) + (define-key map (kbd "") 'notmuch-show-previous-button) (define-key map (kbd "TAB") 'notmuch-show-next-button) (define-key map "s" 'notmuch-search) (define-key map "m" 'notmuch-mua-mail)