我一直试图将SCHEDULED
和DEADLINE
日期添加到org-mode议程中的全局TODO列表中(我正在使用spacemacs)。
从我阅读的内容来看,要更改的变量应该是org-agenda-prefix-format
在我通过 C-h + v 访问的帮助菜单中,这些格式字符起作用:
%c the category of the item, "Diary" for entries from the diary,
or as given by the CATEGORY keyword or derived from the file name
%e the effort required by the item
%l the level of the item (insert X space(s) if item is of level X)
%i the icon category of the item, see `org-agenda-category-icon-alist'
%T the last tag of the item (ignore inherited tags, which come first)
%t the HH:MM time-of-day specification if one applies to the entry
%s Scheduling/Deadline information, a short string
%b show breadcrumbs, i.e., the names of the higher levels
%(expression) Eval EXPRESSION and replace the control string
by the result
通过使用%?s
,该字段仅在该值适用于该条目时才显示。
因此,我在.spacemacs
文件中添加了以下行:
(setq org-agenda-prefix-format "%?s ")
但这对TODO列表没有影响,而仅对每周/每日议程视图有影响。
答案 0 :(得分:0)
看起来像%s的东西在TODO列表中会被忽略:https://emacs.stackexchange.com/a/12373/19819(在注释中)。
您可以使用自定义表达式:
*/exclude1.txt
*/exclude2.jpg
*/exclude3.db
仅将其用于待办事项列表,仅修改"%(let ((scheduled (org-get-scheduled-time (point)))) (if scheduled (format-time-string \"%Y-%m-%d\" scheduled) \"\")) "
中的待办事项:
org-agenda-prefix-format