emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Featurep weekday-only timestamps
@ 2009-04-20 14:47 Joel J. Adamson
  2009-04-20 16:54 ` Matthew Lundin
  0 siblings, 1 reply; 2+ messages in thread
From: Joel J. Adamson @ 2009-04-20 14:47 UTC (permalink / raw)
  To: emacs-orgmode

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 >

Is there a way to do this that I have missed?  Could this feature be added?

Thanks,
Joel

-- 
Joel J. Adamson	-- http://www.unc.edu/~adamsonj
University of North Carolina at Chapel Hill
CB #3280, Coker Hall
Chapel Hill, NC 27599-3280

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Featurep weekday-only timestamps
  2009-04-20 14:47 Featurep weekday-only timestamps Joel J. Adamson
@ 2009-04-20 16:54 ` Matthew Lundin
  0 siblings, 0 replies; 2+ messages in thread
From: Matthew Lundin @ 2009-04-20 16:54 UTC (permalink / raw)
  To: Joel J. Adamson; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-20 16:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-20 14:47 Featurep weekday-only timestamps Joel J. Adamson
2009-04-20 16:54 ` Matthew Lundin

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).