From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregor Zattler Subject: Re: collect info from org files in agenda when open? Date: Sat, 13 Jul 2013 10:33:15 +0200 Message-ID: <20130713083315.GA20339@boo.workgroup> References: <20130712221620.GC15939@boo.workgroup> <87ppumnan8.fsf@noman.maa.corp.collab.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxvGp-0006OK-Pa for emacs-orgmode@gnu.org; Sat, 13 Jul 2013 04:33:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxvGm-0004rD-RR for emacs-orgmode@gnu.org; Sat, 13 Jul 2013 04:33:35 -0400 Received: from mout.gmx.net ([212.227.15.18]:59175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxvGm-0004r8-IC for emacs-orgmode@gnu.org; Sat, 13 Jul 2013 04:33:32 -0400 Received: from boo.workgroup ([87.187.170.233]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0M81vR-1UBRLW3SlN-00vhjs for ; Sat, 13 Jul 2013 10:33:31 +0200 Content-Disposition: inline In-Reply-To: <87ppumnan8.fsf@noman.maa.corp.collab.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Hi Noorul, org-mod users and developers, * Noorul Islam K M [13. Jul. 2013]: > Gregor Zattler writes: >> I customized my org-agenda-files variable to contain 4 files. >> But I wished I could automatically add org files to the agenda >> simply by opening them. Is it possible to automagically add >> some files to the agenda iff they are visited or add the contents >> of org-mode buffers? > > I am not sure whether you already went through contents of this link. > > http://orgmode.org/manual/Agenda-files.html Yes I read this part of the manual before posting my question. As I understand the manual, I have the possibility to customize a static list of agenda files in org-agenda-files or to manually add and remove org files from the agenda or restrict the agenda manually. I do not see how to *automatically* add open org-files to the agenda? Perhaps I could do this with some hooks? Actually I think a static list of files which contribute to the agenda is fine. But I wished there was also the ability to define a list of files which do only contribute to the agenda if already open (preferably with some pattern matching, so one could customize org to add any open org file to the agenda). Ciao, Gregor -- -... --- .-. . -.. ..--.. ...-.-