From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: MobileOrg Date: Wed, 25 Jun 2014 15:17:45 -0400 Message-ID: <87pphwssrq.fsf@alphaville.bos.redhat.com> References: <86lhwvzwhh.fsf@gmail.com> <86ha70iak8.fsf@freeenv.ad.medctr.ucla.edu> <868uok24y5.fsf@freeenv.ad.medctr.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzsho-0008HP-5C for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 15:18:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wzshi-0004Tj-1D for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 15:18:04 -0400 Received: from plane.gmane.org ([80.91.229.3]:37075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzshh-0004Te-RX for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 15:17:57 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wzshg-0005dW-C0 for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 21:17:56 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Jun 2014 21:17:56 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Jun 2014 21:17:56 +0200 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@gnu.org Aric Gregson writes: > Sean Escriva writes: > >> org-mobile.el which is responsible for the sync has a custom var defined >> called 'org-mobile-files-exclude-regexp' which should exlude files that >> match. > > OK. I've tried to play with this, but clearly my understanding of emacs > and regex is inadequate for this. Ideally I would like to exclude all of > the files except for two, agenda.org and organizer.org. Alternatively, > is there a way to list all files you want excluded in the regex match > pattern? > > I tried [[:name.of.file:]][[:name.of.another:]] but it didn't like > that. I can exclude a single file just by putting it's name in, but I am > not clear on how to make a list of files to exclude. > Instead of starting with everything and trying to exclude most of them, go the other way: start with nothing and include just what you want: C-h v org-mobile-files RET Something like this: (setq org-mobile-files '("/path/to/agenda.org" "/path/to/organizer.org")) Nick