From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id E59036DE1030 for ; Sun, 10 Mar 2019 12:59:02 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.199 X-Spam-Level: X-Spam-Status: No, score=-0.199 tagged_above=-999 required=5 tests=[AWL=0.002, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R2hpqqZrbRwL for ; Sun, 10 Mar 2019 12:59:01 -0700 (PDT) Received: from marcos.anarc.at (marcos.anarc.at [206.248.172.91]) by arlo.cworth.org (Postfix) with ESMTPS id 86CA96DE0EA6 for ; Sun, 10 Mar 2019 12:59:01 -0700 (PDT) Received: by marcos.anarc.at (Postfix, from userid 1000) id 5B48C10E76A; Sun, 10 Mar 2019 15:58:59 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=orangeseeds.org; s=marcos; t=1552247939; bh=8X8rGtFqEfcWT+SoWX5067C90yIYw/GFWD5zbf8ZxNQ=; h=From:To:Subject:In-Reply-To:References:Date:From; b=Xwe+0rfMaIRH0yXc29713NbhPp0/6hiUXh5PWp5mwhGqUKJEofvzGIy9K5R01ncDD pTjd3ULC4j1WMKQsE7xleL2tm3l0EsGOToc20NF17nOA0dC5+xZ/4iwYfFOlHHw0Cs pEITExXuzelTpSFYy7/iIcxMaxpOtL9nMIG5/avNMXRbZ7KnZK92W7RVxQLTQp4RvR Wc4EQTOWzfryBlTFFwiIjhg4LZupGtvSAEytf3bxzlEMbY4iqXs42gb/C/FB7LiKlh FCT64ljXSsvYxkBMDkkMdysF8t58LKzKXCRjpm0RY7OQo8ChwHAN6vyC+q2tusJ7Wt JCYIRhSGPHVFQ== Received: by curie.anarc.at (Postfix, from userid 1000) id 09707127E7F; Sun, 10 Mar 2019 15:58:59 -0400 (EDT) From: =?utf-8?Q?Antoine_Beaupr=C3=A9?= To: notmuch@notmuchmail.org Subject: Re: how do i split my email view (AKA I got a new job) In-Reply-To: <87wol6oejl.fsf@ra.horus-it.com> (Ralph Seichter's message of "Sun, 10 Mar 2019 17:54:54 +0100") References: <87ef7e8zx8.fsf@curie.anarc.at> <87wol6oejl.fsf@ra.horus-it.com> Date: Sun, 10 Mar 2019 15:58:58 -0400 Message-ID: <87va0qsdq5.fsf@curie.anarc.at> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Mar 2019 19:59:03 -0000 On 2019-03-10 17:54:54, Ralph Seichter wrote: > * Antoine Beaupr=C3=A9: > >> 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. --=20 When spider webs unite, they can tie up a lion. - ethiopian proverb