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

是否可以?

4

2 回答 2

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.

如果您希望保留预定行而不是截止日期,则更新版本的 org-mode 还允许以下设置:

(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.
于 2012-07-26T17:18:11.737 回答
3

不,这是不可能的。

我会简单地使用SCHEDULED, not DEADLINE,因为SCHEDULED这里隐含的意思是“今天就做一天”,因此DEADLINEcookie 引入了您观察到的冗余。

于 2012-07-25T07:33:01.343 回答