gpt4 book ai didi

emacs - header 中的组织模式任务日期 - 可能吗?

转载 作者:行者123 更新时间:2023-12-02 07:06:12 25 4
gpt4 key购买 nike

我有一个任务,需要每天完成,截止日期为第二天。所以如果我在我的 .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

这可能吗?

最佳答案

您可以将以下内容添加到您的 ~/.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.

关于emacs - header 中的组织模式任务日期 - 可能吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11643800/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com