使org-agenda-list隐藏为未来安排的项目

时间:2014-01-14 16:13:03

标签: emacs org-mode

我使用org-mode每周/每日日程表,希望能够使用SCHEDULED关键字隐藏项目,直到预定时间到来。在那之前我不想考虑它们。如何设置org-agenda-list来执行此操作?

这是议程项目清单,而不是TODO清单。我已将org-agenda-todo-ignore-scheduled设置为future。它没有帮助。

3 个答案:

答案 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)

这对我有用:

(setq org-agenda-todo-ignore-with-date t)

来自http://orgmode.org/manual/Global-TODO-list.html