我使用org-mode
每周/每日日程表,希望能够使用SCHEDULED
关键字隐藏项目,直到预定时间到来。在那之前我不想考虑它们。如何设置org-agenda-list
来执行此操作?
这是议程项目清单,而不是TODO清单。我已将org-agenda-todo-ignore-scheduled
设置为future
。它没有帮助。
答案 0 :(得分:6)
集
(setq org-agenda-todo-ignore-scheduled 'future)
和
(setq org-agenda-tags-todo-honor-ignore-options t)
答案 1 :(得分:1)
使用组织模式混淆的参数集,您可能会得到想要的结果,但是创建自定义过滤器功能可能更容易
(defun my/org-skip-function (part)
"Partitions things to decide if they should go into the agenda '(agenda future-scheduled done)"
(let* ((skip (save-excursion (org-entry-end-position)))
(dont-skip nil)
(scheduled-time (org-get-scheduled-time (point)))
(result
(or (and scheduled-time
(time-less-p (current-time) scheduled-time)
'future-scheduled) ; This is scheduled for a future date
(and (org-entry-is-done-p) ; This entry is done and should probably be ignored
'done)
'agenda))) ; Everything else should go in the agenda
(if (eq result part) dont-skip skip)))
(setq org-agenda-skip-function '(my/org-skip-function 'agenda))
如果要使用其他过滤器,只需将它们添加到具有不同标签的or
块中即可。
答案 2 :(得分:0)