[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Show timestamps but not SCHEDULED
From: |
Ken Mankoff |
Subject: |
[O] Show timestamps but not SCHEDULED |
Date: |
Sun, 30 Aug 2015 08:26:53 -0400 |
Hi List,
I have a class of TODO items (I call them EVENTS). These all have timestamps.
Sometimes they have SCHEDULED or DEADLINE timestamps too.
I'd like a custom agenda view that shows these EVENTS based on their timestamp,
but not the SCHEDULED or DEADLINE timestamps. Is this possible?
Example item:
* EVENT Foo
SCHEDULED: <2015-09-03>
<2015-09-04>
My current setup is:
(setq org-agenda-custom-commands
'(
("e" "Event List"
(
(agenda "" (
(org-agenda-overriding-header "Events")
(org-agenda-show-all-dates t)
(org-agenda-ndays 30)
(org-agenda-skip-function '(org-agenda-skip-entry-if 'nottodo '("EVENT")
'done))
;;(org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled 'nottodo
'("EVENT") 'done))
))))))
As it is, I see SCHEDULED. If I swap the comment on the last two lines, then I
don't see SCHEDULED, but I don't see the event at all either, which is more
problematic.
I think the solution here might be to add a function to
org-agenda-finalize-hook that removes lines with SCHEDULED or DEADLINE? Does
this sound like the correct approach to the better Org hackers on this list?
I am basing this approach on the code that removes empty sections of the Agenda:
https://lists.gnu.org/archive/html/emacs-orgmode/2015-06/msg00266.html
Thanks,
-k.