From 35d24f4590ad3576fc4be8944013448bd2e4ced0 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 9 Sep 2021 03:57:21 +0100 Subject: jao-notmuch: notmuch-*-format-field got functions! --- notmuch.org | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'notmuch.org') diff --git a/notmuch.org b/notmuch.org index cbfee86..435a617 100644 --- a/notmuch.org +++ b/notmuch.org @@ -156,7 +156,7 @@ (when (eq 'notmuch jao-afio-mail-function) (setq message-directory "~/var/mail/" message-auto-save-directory "/tmp" - mail-user-agent 'sendmail-user-agent)) + mail-user-agent 'message-user-agent)) :bind (:map notmuch-common-keymap (("E" . jao-notmuch-open-enclosure) @@ -305,7 +305,7 @@ (defun jao-notmuch--truncate (x) (truncate-string-to-width (format "%-102s" x) 102 nil nil t)) - (defun jao-notmuch--msg-ticks (msg) + (defun jao-notmuch--msg-ticks (_ msg) (let ((headers (plist-get msg :headers))) (cond ((string-match-p jao-mails-regexp (or (plist-get headers :To) "")) (propertize " »" 'face 'notmuch-tree-match-tree-face)) @@ -313,7 +313,7 @@ (propertize " ¬" 'face 'notmuch-tree-match-tree-face)) (t " ")))) - (defun jao-notmuch--tree-subject (msg) + (defun jao-notmuch--tree-subject (_ msg) (thread-first '(("tree" . " %s") ("subject" . " %s")) (notmuch-tree-format-field-list msg) (jao-notmuch--truncate))) @@ -321,8 +321,8 @@ (setq notmuch-tree-result-format '(("date" . "%12s ") ("authors" . "%-35s") - (jao-notmuch--msg-ticks) - (jao-notmuch--tree-subject) + (jao-notmuch--msg-ticks . "%s") + (jao-notmuch--tree-subject . "%s") ("tags" . " (%s)")) notmuch-unthreaded-result-format notmuch-search-result-format consult-notmuch-result-format -- cgit v1.2.3