2012-07-25 104 views
2

我有一項任務,需要在第二天的截止日期每天完成。所以,如果我在.ORG文件中是這樣寫的:標題中的組織模式任務日期 - 可能嗎?

** TODO Daily report 
DEADLINE: <2012-07-27 Fri +1d> 
SCHEDULED: <2012-07-26 Thu +1d> 

這會產生相當惡劣的議程,兩行的每一天,相同的文字「每日報」:

Friday  27 July 2012 
Work:  Scheduled: TODO Daily report 
Work:  Deadline: TODO Daily report 

我想要什麼應能夠在「每日報告」文本之後看到日期,該日期與該行對應的日期相加。例如:

Friday  27 July 2012 
Work:  Scheduled: TODO Daily report for 27 July 2012 
Work:  Deadline: TODO Daily report for 26 July 2012 

這可能嗎?

+0

嗯。 org-mode的默認設置顯示截止日期的「In 1 d .: TODO Daily report」,與SCHEDULED行很好地區分。 org-agenda-deadline-leader在你的機器上的價值是什麼? – madalu 2012-07-26 17:09:48

回答

3

不,這是不可能的。

我會簡單地使用SCHEDULED,不DEADLINE,爲SCHEDULED隱含的意思是「今天就在一天」在這裏,所以DEADLINE餅乾介紹你觀察到的冗餘。

5

您可以添加以下到〜/的.emacs避免冗餘:

(setq org-agenda-skip-scheduled-if-deadline-is-shown t) 

從這個變量的文檔:

In the agenda of today, an entry can show up multiple times because 
it is both scheduled and has a nearby deadline, and maybe a plain time 
stamp as well. 
When this variable is t, then only the deadline is shown and the fact that 
the entry is scheduled today or was scheduled previously is not shown. 
When this variable is nil, the entry will be shown several times. When 
the variable is the symbol `not-today', then skip scheduled previously, 
but not scheduled today. 

最近組織模式的版本還允許以下設置,如果您希望保留預定的行而不是最後期限行:

(setq org-agenda-skip-deadline-prewarning-if-scheduled t) 

來自文檔:

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.