emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stig Brautaset <stig@brautaset.org>
To: emacs-orgmode@gnu.org
Subject: Task repeat every weekday?
Date: Wed, 23 Jan 2019 13:16:22 +0000	[thread overview]
Message-ID: <m2a7jrecpl.fsf@brautaset.org> (raw)


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

             reply	other threads:[~2019-01-23 13:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-23 13:16 Stig Brautaset [this message]
2019-01-23 14:10 ` Task repeat every weekday? Julius Dittmar
2019-01-23 17:55 ` Marcin Borkowski

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://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2a7jrecpl.fsf@brautaset.org \
    --to=stig@brautaset.org \
    --cc=emacs-orgmode@gnu.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://git.savannah.gnu.org/cgit/emacs/org-mode.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).