From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stig Brautaset Subject: Task repeat every weekday? Date: Wed, 23 Jan 2019 13:16:22 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:52823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmIWo-0001y4-FB for emacs-orgmode@gnu.org; Wed, 23 Jan 2019 08:25:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmIOb-00088W-SE for emacs-orgmode@gnu.org; Wed, 23 Jan 2019 08:16:47 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:47501) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gmIOZ-0007uW-RJ for emacs-orgmode@gnu.org; Wed, 23 Jan 2019 08:16:45 -0500 Received: from localhost (unknown [185.59.181.102]) (Authenticated sender: stig@brautaset.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id E11B320000F for ; Wed, 23 Jan 2019 13:16:22 +0000 (UTC) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi! I have some work tasks that I need to get into the habit of doing every day. (Reviewing PRs / Jira, ...) Currently I do this with a calendar-style repeater, like so: ,---- | * Recurring Tasks | ** Review PRs | :LOGBOOK: | :END: | <%%(sb/weekday-p date)> | | - https://github.com/pulls `---- Where init.el contains: ,---- | (defun sb/weekday-p (date) | "Is `date' a weekday?" | (let ((dayname (calendar-day-of-week date))) | (memq dayname '(1 2 3 4 5)))) `---- While this allows me to clock in, and add comments, it doesn't give me that nice buzz from closing a task. And it doesn't get it out of my agenda once I've completed it that day. Is there a way to make this into a repeating TODO that shows only on weekdays? -- Kind regards, Stig