emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Problems with org-mode-hook when files are opened by org-a


From: Tassilo Horn
Subject: Re: [Orgmode] Problems with org-mode-hook when files are opened by org-agenda-list
Date: Thu, 12 Mar 2009 17:02:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

Carsten Dominik <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]