From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael McAndrew Subject: regex to find *.org in subdirectories for agenda Date: Thu, 21 May 2009 00:57:13 +0100 Message-ID: <4b58d51b0905201657k5bd1916cpbed12feccb4ee459@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1739970540==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6vf1-0003Nj-76 for emacs-orgmode@gnu.org; Wed, 20 May 2009 19:57:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6vev-0003Ih-N6 for emacs-orgmode@gnu.org; Wed, 20 May 2009 19:57:21 -0400 Received: from [199.232.76.173] (port=35550 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6vev-0003IB-GK for emacs-orgmode@gnu.org; Wed, 20 May 2009 19:57:17 -0400 Received: from mail-pz0-f175.google.com ([209.85.222.175]:48252) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M6veu-0005Tt-Pe for emacs-orgmode@gnu.org; Wed, 20 May 2009 19:57:17 -0400 Received: by pzk5 with SMTP id 5so756030pzk.14 for ; Wed, 20 May 2009 16:57:15 -0700 (PDT) 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: emacs-orgmode@gnu.org --===============1739970540== Content-Type: multipart/alternative; boundary=000e0cd2426253a4e2046a60c91b --000e0cd2426253a4e2046a60c91b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi there, I'm just getting started with org mode after having watched the google tech talk. from my experiences so far, i think it is the tool i have been waiting for a long time! i've have transferred by entire huge nested todo list (which i was previously managing in a local mediawiki) and that has been great. but am now excited about being able to split up and recompile all my todos automatically - so i can keep everything contextually organised. I have my projects organised in directories and sub directories under two projects directories, "~/work" and "~/home". i want to keep *.org lists in each of these directories and have them automatically picked up by orgmode when i hit C-ca. so i might have ~/work/bbc/todo.org and ~/home/garden/ todo.org I found this post http://www.mail-archive.com/emacs-orgmode@gnu.org/msg08945.html so i presume that i need to use a regular expression in find-lisp-find-files to create this list of files to feed to some variable like org-agenda-files... and have tried a million regex inspired expressions in my emacs config like: (load-library "find-lisp") (set org-agenda files (find-lisp-find-files "~" (rx seq(string-start (or "work" "home") ".org" string-end)))) but it isn't working. i'm kind of out of my depth with emacs (aquamacs actually - only have a few days experience) and have never got to grips with regex! but also loving it and would be grateful if someone could pull me out of this hole :) Thanks, Michael --000e0cd2426253a4e2046a60c91b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi there,

I'm just getting started with org mode after having wa= tched the google tech talk.=A0 from my experiences so far, i think it is th= e tool i have been waiting for a long time!

i've have transferre= d by entire huge nested todo list (which i was previously managing in a loc= al mediawiki) and that has been great.=A0 but am now excited about being ab= le to split up and recompile all my todos automatically - so i can keep eve= rything contextually organised.

I have my projects organised in directories and sub directories under t= wo projects directories, "~/work" and "~/home".=A0 i wa= nt to keep *.org lists in each of these directories and have them automatic= ally picked up by orgmode when i hit C-ca.=A0 so i might have=A0 ~/work/bbc= /todo.org and ~/home/garden/todo.org

I found this post http://www.mail-archive.com/emacs-orgmode@gnu.org/ms= g08945.html

so i presume that i need to use a regular expression= in find-lisp-find-files to create this list of files to feed to some varia= ble like org-agenda-files...

and have tried a million regex inspired expressions in my emacs config = like:

(load-library "find-lisp")
(set org-agenda files = (find-lisp-find-files "~" (rx seq(string-start (or "work&quo= t; "home") ".org" string-end))))

but it isn't working.

i'm kind of out of my depth with e= macs (aquamacs actually - only have a few days experience) and have never g= ot to grips with regex! but also loving it and would be grateful if someone= could pull me out of this hole :)

Thanks,
Michael
--000e0cd2426253a4e2046a60c91b-- --===============1739970540== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1739970540==--