From: Tassilo Horn <tassilo@member.fsf.org>
To: Carsten Dominik <dominik@science.uva.nl>
Cc: emacs-orgmode@gnu.org
Subject: Re: Problems with org-mode-hook when files are opened by org-agenda-list
Date: Thu, 12 Mar 2009 17:02:30 +0100 [thread overview]
Message-ID: <87hc1yohk9.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: <BB2B1889-3A8D-4EAE-8E29-32A90CAB692A@uva.nl> (Carsten Dominik's message of "Thu, 12 Mar 2009 09:31:53 +0100")
Carsten Dominik <dominik@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
prev parent reply other threads:[~2009-03-12 16:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-12 7:42 Problems with org-mode-hook when files are opened by org-agenda-list Tassilo Horn
2009-03-12 8:31 ` Carsten Dominik
2009-03-12 16:02 ` Tassilo Horn [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hc1yohk9.fsf@thinkpad.tsdh.de \
--to=tassilo@member.fsf.org \
--cc=dominik@science.uva.nl \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).