From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fredrik Subject: Re: Re: Autoset org-agenda-files Date: Tue, 2 Feb 2010 08:44:43 +0100 Message-ID: <0C901BE6-90BD-4CCA-84D8-80671D5C748C@jumans.net> References: <8AA35E25-4070-4E21-9C42-8A5A00B4EAC4@jumans.net> <32023EC6-E251-41FB-981D-5A0840B8EACB@gmail.com> <87wryw4p32.wl%maus.david@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcDvi-0007I7-Ap for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 03:16:14 -0500 Received: from [140.186.70.92] (port=43649 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcDvg-0007GB-Ou for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 03:16:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NcDvd-0003au-5r for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 03:16:12 -0500 Received: from mail.snowmen.se ([80.169.182.173]:34610) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NcDvc-0003aW-L0 for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 03:16:09 -0500 In-Reply-To: <87wryw4p32.wl%maus.david@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Maus Cc: BKnoth , emacs-orgmode@gnu.org, Carsten Dominik Thanks, exactly what I was looking for...have some things that needs to be excluded and have som subfolders so this helps a lot.. Thank you all for your input... Regards, Fredrik On 1 feb 2010, at 22.34, David Maus wrote: > At Mon, 1 Feb 2010 21:52:01 +0100, > Carsten Dominik wrote: >> >> >> On Feb 1, 2010, at 9:47 PM, BKnoth wrote: >> >>> On 2/1/2010 7:59 AM, Fredrik wrote: >>>> I wonder if someone with some elisp knowledge could help me >>>> out.... I >>>> have a folder containing all my org-files named as X.org and would >>>> like >>>> to autopopulate the org-agenda-files when I start emacs. So in >>>> short >>>> terms search folder for *.org (and exclude *-archive.org) so it is >>>> always done when starting emacs... >> >> This is a FAQ. >> >> http://orgmode.org/worg/org-faq.php#set-agenda-files-using-wildcards >> > > Or if your org folder contains subdirs and you store org-files as > attachments to headlines (read: more subfolders) you may use the > `find-list' library. > > In my configuration file: > > (require 'find-lisp) > (setq org-agenda-files (find-lisp-find-files org-directory "^[^#].+\ > \.org$")) > > adds all .org files to the list of agenda files. > > HTH > -- David > > -- > OpenPGP... 0x99ADB83B5A4478E6 > Jabber.... dmjena@jabber.org > Email..... maus.david@gmail.com > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode