问题描述
在组织模式中,我知道如何创建一个todo并使用时间戳,以便今天安排。我如何安排明天?不幸的是,我不知道Elisp,现在没有时间学习它。这是我的.emacs文件:
In org-mode, I know how to create a todo and use the timestamp so that it is scheduled for today. How do I schedule it for tomorrow? Unfortunately I don't know Elisp and don't have time right now to learn it. Here is my .emacs file:
(setq org-capture-templates
'(("t" "Agenda Todo" entry
(file+headline "c:/Org/agenda.org" "Agenda")
"\n\n** TODO %?\nSCHEDULED: <%<%Y-%m-%d %a>>"
:empty-lines 1)
我需要将%m-%d%a替换为增加一天的值。
I would need to replace the %m-%d %a with a value incremented by one day.
推荐答案
工作关闭Juancho的回答*我能够提出一个有效的时间戳。
Working off Juancho's answer* I was able to come up with a valid timestamp.
以下内容将提供组织创建的时间戳。
The following will provide an org-created timestamp.
"[...]SCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+1d\"))"
org-read-date
生成日期和 + 1d
将来会有一天。 nil t
告诉它不包括HH:MM时间和将日期转换为内部TIME表示。
org-read-date
generates a date and +1d
shifts it one day in the future. nil t
tells it to not include HH:MM time and to convert the date into an internal TIME representation.
org-insert-time-stamp
需要TIME,并使用正常的组织模式格式(包括平日缩写)将其转换为时间戳。
org-insert-time-stamp
takes TIME and converts it to a timestamp using the normal org-mode format (including weekday abbreviation)
*答案不起作用,因为
<%(org-read-date nil nil \+ 1d\)>
导致
< YYYY-MM-DD>
*The answer does not work because <%(org-read-date nil nil \"+1d\")>"
results in<YYYY-MM-DD>
时间戳现在在组织模式下有效(它被添加到允许从组织模式外部输入时间戳,他们不能自动计算我相信的那一天)
A timestamp of is now valid in Org mode (it was added to allow for entering timestamps from outside org-mode where they would not automatically be able to calculate the day of the week I believe).
所以Juancho的答案也会奏效。
Therefore Juancho's answer would work as well.
这篇关于使用组织捕获模板在今天之后安排一个TODO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!