Neilen Marais <nmar...@gmail.com> wrote:

> Jambunatha,
> 
> 
> > > Have you considered adding it to say org-mode-hook?
> > 
> > Seems like a Wrong suggestion to me.
> > 
> > Try using `C-c [' to add the current org file. I am assuming that org
> > files are created by hand and not by some daemon that spits out agenda
> > files when you are away from emacs.
> 
> Not a daemon, no, but I do tend to move files around. I.e. I'll move a project
> file/dir from my "someday" folder to my "active" folder. I would like to avoid
> any further manual steps to get it integrated in my agenda.
> 
> Is there a hook function that gets called every time an agenda view is opened 
> or
> refreshed? I could probably use that to update the agenda list.
> 

Seek and ye shall find:

C-h v org-agenda--hook RET

will list all the matching hooks. Which one to choose? I'll leave that up
to the interested reader :-) Or try

C-h v org--hook RET

to get a list of *all* the org hooks.

Nick




Reply via email to