[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] batch printing of diary/agenda without Scheduled items
From: |
Bastien |
Subject: |
Re: [Orgmode] batch printing of diary/agenda without Scheduled items |
Date: |
Wed, 03 Oct 2007 16:53:52 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux) |
pete phillips <address@hidden> writes:
> However, I don't want any Scheduled items to appear (as these are not
> appointments/dates as such).
>
> I currently use this:
>
> /usr/bin/emacs-snapshot -batch -l ~/.xemacs/init.el -eval "(setq
> european-calendar-style nil diary-mail-days 7 diary-file
> \"/home/pete/diary\")" -eval '(org-batch-agenda "a" org-agenda-files
> (quote ("~/TODO/HOME.org" "~/TODO/SMTL.org")))'
I think the right way is to add a custom agenda command:
,----
| (org-add-agenda-custom-command
| '(("X" agenda ""
| ((org-agenda-skip-function
| (lambda() (org-agenda-skip-entry-if 'scheduled 'deadline)))))))
`----
Note that this view also skips deadlines. Then call this new "X" agenda
command like this:
,----
| /usr/bin/emacs-snapshot -batch -l ~/.xemacs/init.el -eval \ "(setq
european-calendar-style nil diary-mail-days 7 diary-file
| \"/home/pete/diary\")" -eval '(org-batch-agenda "X" org-agenda-files
(quote ("~/TODO/HOME.org" "~/TODO/SMTL.org")))'
`----
--
Bastien