Carsten Dominik <domi...@science.uva.nl> writes:

>> --8<---------------cut here---------------start------------->8---
>> (defun th-org-update-agenda-file (&optional force)
>>  (interactive)
>>  (save-excursion
>>    (save-window-excursion
>>      (let ((file "/tmp/org-agenda.txt"))
>>        (org-agenda-list)
>>        (org-write-agenda file)))))
>>
>> (th-org-update-agenda-file t)
>>
>> (add-hook 'org-mode-hook 'th-org-mode-init)
>> --8<---------------cut here---------------end--------------->8---
>
> I think you need to swap the last two lines.

Gosh!  That's really too stupit.  Sometimes I'm really more than
routine-blinded...

Thanks a lot Carsten!
Tassilo


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to