From: Matthew Lundin <mdl@imapmail.org>
To: "Joel J. Adamson" <adamsonj@email.unc.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: Featurep weekday-only timestamps
Date: Mon, 20 Apr 2009 11:54:00 -0500 [thread overview]
Message-ID: <878wlvs1uf.fsf@fastmail.fm> (raw)
In-Reply-To: <87vdozfkla.fsf@chondestes.bio.unc.edu> (Joel J. Adamson's message of "Mon, 20 Apr 2009 10:47:29 -0400")
Hi Joel,
adamsonj@email.unc.edu (Joel J. Adamson) writes:
> Howdy Org-moders,
>
> I use org from git updated weekly. I would really like to be able to
> specify a timestamp for certain days of the week, e.g. M-F, or MWF,
> without specifying multiple timestamps for a single headline. Doing
> that for something that happens twice a week is no hassle, but doing it
> five times seems like too much.
>
> What I'd like is to have a headline like this:
> ** Sacrifice for Demons <2009-04-20 Mon,Wed,Fri 10:00 +1w>
> ** Wake Up <2009-04-20 Mon-Fri 5:45 +1w >
You can do this with a diary sexp within org-mode. E.g., I used the
following for a class that I taught on Tuesdays and Thursdays from
January 8 through February 24:
--8<---------------cut here---------------start------------->8---
** Teach Course 1:20pm-2:35pm
<%%(let ((d (calendar-day-of-week date))) (and (or (= d 2) (= d 4)) (diary-block 1 8 2009 2 24 2009)))>
--8<---------------cut here---------------end--------------->8---
I'm an elisp amateur, but I imagine you could create your example above
with the following:
--8<---------------cut here---------------start------------->8---
** Wake up 5:45am
<%%(memq (calendar-day-of-week date) '(1 3 5)))>
--8<---------------cut here---------------end--------------->8---
Someone please correct me if I'm doing something wrong here.
Best,
Matt
prev parent reply other threads:[~2009-04-20 16:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-20 14:47 Featurep weekday-only timestamps Joel J. Adamson
2009-04-20 16:54 ` Matthew Lundin [this message]
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=878wlvs1uf.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=adamsonj@email.unc.edu \
--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).