mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
4f4ec48df2
If the car of an element in notmuch-search-result-format is a function, insert the result of calling the function into the buffer. This allows a user to generate custom fields in the output of a search result. For example, with: (defun -notmuch-result-flags (format-string result) (let ((tags-to-letters '(("flagged" . "!") ("unread" . "u") ("mine" . "m") ("sent" . "s") ("replied" . "r"))) (tags (plist-get result :tags))) (format format-string (mapconcat (lambda (t2l) (if (member (car t2l) tags) (cdr t2l) " ")) tags-to-letters "")))) (setq notmuch-search-result-format '((-notmuch-result-flags . "%s ") ("date" . "%12s ") ("count" . "%9s ") ("authors" . "%-30s ") ("subject" . "%s ") ("tags" . "(%s)"))) The first few characters on each line of the search result are used to show information about some significant tags associated with the thread. |
||
---|---|---|
.. | ||
.gitignore | ||
coolj.el | ||
make-deps.el | ||
Makefile | ||
Makefile.local | ||
notmuch-address.el | ||
notmuch-company.el | ||
notmuch-compat.el | ||
notmuch-crypto.el | ||
notmuch-draft.el | ||
notmuch-emacs-mua | ||
notmuch-emacs-mua.desktop | ||
notmuch-hello.el | ||
notmuch-jump.el | ||
notmuch-lib.el | ||
notmuch-logo.png | ||
notmuch-maildir-fcc.el | ||
notmuch-message.el | ||
notmuch-mua.el | ||
notmuch-parser.el | ||
notmuch-pkg.el.tmpl | ||
notmuch-print.el | ||
notmuch-query.el | ||
notmuch-show.el | ||
notmuch-tag.el | ||
notmuch-tree.el | ||
notmuch-version.el.tmpl | ||
notmuch-wash.el | ||
notmuch.el | ||
rstdoc.el | ||
rstdoc.rsti |