From: "Antoine Beaupré" <anarcat@orangeseeds.org>
To: notmuch@notmuchmail.org
Subject: Re: how do i split my email view (AKA I got a new job)
Date: Sun, 10 Mar 2019 15:58:58 -0400 [thread overview]
Message-ID: <87va0qsdq5.fsf@curie.anarc.at> (raw)
In-Reply-To: <87wol6oejl.fsf@ra.horus-it.com> (Ralph Seichter's message of "Sun, 10 Mar 2019 17:54:54 +0100")
On 2019-03-10 17:54:54, Ralph Seichter wrote:
> * Antoine Beaupré:
>
>> How can I make that "All tags" junk disappear?
>
> If it bugs you that much, you can use the "this page" link in "Customize
> Notmuch or this page".
Ooooh... I remember now! I digged in the source last time we chatted
about this in #notmuch. I did so again and found what I was looking for:
(setq notmuch-hello-tag-list-make-query "tag:unread and not tag:work")
Now I need to figure out how to make schedules in Emacs... :) It looks
like I need to do something with `run-at-time' or something to that
effect:
https://www.gnu.org/software/emacs/manual/html_node/elisp/Timers.html#Timers
I also found out about the "midnight" mode, but that seems to support
only a single time trigger:
https://www.emacswiki.org/emacs/MidnightMode
I also found idle timers, but that seems irrelevant:
https://www.emacswiki.org/emacs/IdleTimers#toc2
Anyone else played with scheduling like this?
In any case, I guess just having a defun that flips that around would be
a good start. :) I'm thinking of something like:
(defun anarcat/notmuch-work-off ()
(interactive)
(setq notmuch-hello-tag-list-make-query "tag:unread and not tag:work")
(notmuch-refresh-this-buffer))
(defun anarcat/notmuch-work-on ()
(interactive)
(setq notmuch-hello-tag-list-make-query "tag:unread")
(notmuch-refresh-this-buffer))
That's actually two defun - and it looks rather silly, mayb there's a
way to make that a toggle somehow?
Anyways, does that look sane?
A.
--
When spider webs unite, they can tie up a lion.
- ethiopian proverb
next prev parent reply other threads:[~2019-03-10 19:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-10 16:19 how do i split my email view (AKA I got a new job) Antoine Beaupré
2019-03-10 16:54 ` Ralph Seichter
2019-03-10 19:58 ` Antoine Beaupré [this message]
2019-03-10 18:36 ` Jeremy Nickurak
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=87va0qsdq5.fsf@curie.anarc.at \
--to=anarcat@orangeseeds.org \
--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).