Emacs 组织模式 : How to set date and time on the first Wednesday of month

标签 emacs org-mode

我正在尝试为组织模式中的事件添加日期和时间,该事件将在每个月的第一个星期三重复。

我知道我可以使用 diary-sexp 格式来确定每个月的第一个星期三,如下所示:

* My Special Event
  <%%(diary-float t 3 1)>

这有效,但我还需要指定该事件发生的时间(最好是开始和结束时间)。我已经尝试了以下两种方法:
<%%(diary-float t 3 1) 19:30>
<%%(diary-float t 3 1) 19:30-20:30>

...但两者都不起作用。

这甚至可能吗,如果是这样,我做错了什么?

最佳答案

您可以使用以下方法来获得所需的效果

* My Special Event 19:30-20:30
  <%%(diary-float t 3 1)>

它将在您的议程中输出为(议程已修剪):
            18:00...... ----------------
filename:   19:30-20:30 My Special Event
            20:00...... ----------------

关于Emacs 组织模式 : How to set date and time on the first Wednesday of month,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16946220/

相关文章:

emacs - 如何在emacs的emerge中组合冲突的两种变体?

emacs - 组织模式议程—— "Sched. 5x"是什么意思?

python - Emacs 23 和 iPython

emacs - 使组织议程全屏

emacs - 组织模式忽略 HTML 导出中的分页 latex 命令

emacs - 如何使用 scp 或 rsync 使用 Tramp 传输文件

emacs - 如何知道一个缓冲区位置对应的行号?

python - Emacs 中 python 模式下的 M-x 断点

Emacs 组织模式 : Deriving a property value from another property's value

linux - org-mobile 目录中的文件需要什么权限?