[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: |
pete phillips |
Subject: |
Re: [Orgmode] batch printing of diary/agenda without Scheduled items |
Date: |
Thu, 04 Oct 2007 16:55:50 +0100 |
>>>>> "Bastien" == Bastien <address@hidden> writes:
>> | (org-add-agenda-custom-command | '(("X" agenda "" |
>> ((org-agenda-skip-function | (lambda() (org-agenda-skip-entry-if
>> 'scheduled 'deadline))))))) `----
Excellent. Thanks for that. I now have a custom shell command which cron
can call, and which shows me deadlines but not SCHEULED tasks:
-----------print-agenda.sh-------------------------
#!/bin/sh
# print out agenda without scheduled tasks
# relies on creating a custom command on the fly - "X"
# (thanks to Bastien)
/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-add-agenda-custom-command '(\"X\" agenda \"\"
((org-agenda-skip-function (lambda() (org-agenda-skip-entry-if
'scheduled))))))" \
-eval '(org-batch-agenda "X" org-agenda-files (quote ("~/TODO/HOME.org"
"~/TODO/SMTL.org")))'
-----------------------------------------------------
Pete