Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

is there any way in Org-mode to mark some TODOs in a way that they are shown only when their time comes and start showing only in agenda day/week until they are marked as done?

share|improve this question
How are you determining "when their time comes"? Using SCHEDULED:, DEADLINE:, a timestamp for the desired time? By only in Agenda day/week view, do you mean as opposed to within a block agenda/list of todo items? – Jonathan Leech-Pepin Nov 21 '11 at 20:53
Yes, only SCHEDULED: and DEADLINE:. – Jarek Nov 21 '11 at 20:58

The Org-Mode Manual section on Deadlines and scheduling shows that you can set item-specific lead-times on the warnings for SCHEDULED: and DEADLINE:. Lead-time is how many days before the date it will appear in your Agenda to warn you of the upcoming task.

Setting your timestamp to <Scheduled Date -0d> or <Deadline Date -0d> will set the warning lead-time to 0 days. This ensures that it will not show up until the day the timestamp indicates. Overdue items will continue to appear until marked done.

Two things to note:

  1. This will not hide the TODO item from the Agenda TODO list obtained used C-c a t (List of all TODO entries).

  2. If you complete a task before the SCHEDULED: date (For example you complete it on [2011-11-22] and it is SCHEDULED: for [2011-11-25]), it will still show up on the SCHEDULED: date if org-agenda-skip-scheduled-if-done is set to nil. To prevent this behaviour you have to set the following:

    (setq org-agenda-skip-scheduled-if-done t)
share|improve this answer
Yes I would really like them out. The best would be for the scheduled tasks to appear just after the date they were scheduled to occurs. – Jarek Nov 21 '11 at 22:04
Setting your timestamp as <Scheduled Date -0d> means it will appear on the day it is scheduled, and in the future. It will not appear before that day. org-agenda-skip-scheduled-if-done only relates to scheduled tasks that are completed before their scheduled date (if you complete on the 22nd and it's scheduled the 23rd for example it will still show up as done on the 23rd, if the variable is set to nil). – Jonathan Leech-Pepin Nov 21 '11 at 22:08
Thank you, I'll try it. – Jarek Nov 21 '11 at 22:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .