From: Tomas Nordin <tomasn@posteo.net>
To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
Subject: Re: Semi-ready saved search
Date: Sun, 04 Jun 2017 17:48:06 +0200 [thread overview]
Message-ID: <87wp8rdaa1.fsf@fliptop> (raw)
In-Reply-To: <87y3te6y2h.fsf@tesseract.cs.unb.ca>
David Bremner <david@tethera.net> writes:
> One approach would be to define a function like this
>
> (defun last-days-search(arg)
> (interactive "p")
> (notmuch-search (format "date:%dd.. and tag:inbox" arg)))
>
> Then you can pass a numeric argument in the usual emacs way, e.g. if
> that function is bound to C-c d, ESC 2 C-c d will give you two days.
Thank you. I could easily re-shape this to behave as I want:
(defun non-list-for-days-search(arg)
(interactive "nNon-list mails during this many days: ")
(notmuch-search (format "date:%dd.. and not tag:rfile" arg)))
(define-key notmuch-hello-mode-map (kbd "S") 'non-list-for-days-search)
prev parent reply other threads:[~2017-06-04 15:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-05 8:48 Semi-ready saved search Tomas Nordin
2017-05-30 17:42 ` David Bremner
2017-06-04 15:48 ` Tomas Nordin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wp8rdaa1.fsf@fliptop \
--to=tomasn@posteo.net \
--cc=david@tethera.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).