Mac – Emacs org-mode: how to avoid duplicate lines in agenda, when items is scheduled AND has deadline

emacsorg-mode

Many of my TODO items in Emacs org-mode have a DEADLINE defined in the future (e. g. Friday) and are at the same time SCHEDULED today so that I already know I have to start working on this task.

Then, this task will appear twice in my agenda. That's not nice but not necessarily a problem yet, but if then

  • the task has assigned a time estimate for its duration and
  • I go to column view with C-c C-x C-c to see how much time my tasks today will need,

the time estimate for this task is counted twice, so e. g. if the time effort estimate is 2 hours, I'll have 4 hours in my daily agenda, as the item appears as well as scheduled today (or in the past) as also with its deadline in 3 days.

How can I avoid counting an item twice?

Best Answer

You can set org-agenda-skip-deadline-prewarning-if-scheduled to t or a small number.

Documentation:
Non-nil means skip deadline prewarning when entry is also scheduled.

This will apply on all days where a prewarning for the deadline would be shown, but not at the day when the entry is actually due. On that day, the deadline will be shown anyway.

This variable may be set to nil, t, or a number which will then give the number of days before the actual deadline when the prewarnings should resume.

Related Question