Emacs Org-mode 时间戳语言

8

根据我使用的电脑,星期几的缩写会发生变化:在美国版的Ubuntu上是mon、tues、wed等,在法国版的Ubuntu上是lun.、mar.、mer.等。

这会导致org-mode中的org-habit模块出现问题,当这些格式混合时,它无法正常工作。

即使我使用-Q选项绕过我的emacs配置文件,这种本地化也会存在。

我该如何解决这个问题?


浏览org-mode源代码,看起来这是使用变量parse-time-weekdays完成的。但是内置的parse-time-string也可以解析像“星期二”这样的内容,所以我不知道设置parse-time-weekdays是否会达到你想要的效果。 - erikstokes
看起来似乎不是这样。在法语版的Ubuntu上,parse-time-weekdays的值是英文。 - M. Toya
如果您将它们更改为法语,是否会修复org-habit的问题? - erikstokes
1个回答

15
;; System locale to use for formatting time values.
(setq system-time-locale "C")         ; Make sure that the weekdays in the
                                      ; time stamps of your Org mode files and
                                      ; in the agenda appear in English.

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接