Emacs 将工作日插入日记日期格式

Emacs 将工作日插入日记日期格式,emacs,Emacs,日记的格式是 2019年3月18日 这是我的日记 我想在上面加上星期几 星期一的颜色与日期不符 检查文档后,没有这样的工作日格式 The file’s entries are lines beginning with any of the forms specified by the variable ‘diary-date-forms’, which by default uses the forms of ‘diary-american-date-forms’:

日记的格式是

2019年3月18日
这是我的日记

我想在上面加上星期几

星期一的颜色与日期不符

检查文档后,没有这样的工作日格式

The file’s entries are lines beginning with any of the forms
specified by the variable ‘diary-date-forms’, which by default
uses the forms of ‘diary-american-date-forms’:

            MONTH/DAY
            MONTH/DAY/YEAR
            MONTHNAME DAY
            MONTHNAME DAY, YEAR
            DAYNAME

是否可以插入工作日?

尝试将其添加到您的Emacs:


这样做是为了确保日历已加载,以便可以使用日记美国日期表单,然后在其上附加一个额外的日期表单。“备份”是必需的,因为新格式的第一部分与现有格式的第一部分相同。

尝试将其添加到您的Emacs中:

这样做是为了确保日历已加载,以便可以使用日记美国日期表单,然后在其上附加一个额外的日期表单。“备份”是必要的,因为新格式的第一部分与现有格式的第一部分相同

(require 'calendar)
(setq diary-date-forms
      (cons '(backup monthname " *" day ", *" year ", *" dayname "\\W")
        diary-american-date-forms))