From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Task repeat every weekday? Date: Wed, 23 Jan 2019 18:55:32 +0100 Message-ID: <877eev9s2z.fsf@mbork.pl> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:50881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmMlZ-0003Dv-LB for emacs-orgmode@gnu.org; Wed, 23 Jan 2019 12:56:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmMlX-0003fm-RE for emacs-orgmode@gnu.org; Wed, 23 Jan 2019 12:56:45 -0500 Received: from mail.mojserwer.eu ([195.110.48.8]:51496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmMlX-0003UY-G3 for emacs-orgmode@gnu.org; Wed, 23 Jan 2019 12:56:43 -0500 In-reply-to: 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: Stig Brautaset Cc: emacs-orgmode@gnu.org On 2019-01-23, at 14:16, Stig Brautaset wrote: > 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? This thread: http://lists.gnu.org/archive/html/emacs-orgmode/2019-01/msg00002.html might be of help. Hth, -- Marcin Borkowski http://mbork.pl