From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: Per-file attachment directories Date: Wed, 21 Sep 2011 13:34:31 -0300 Message-ID: <4e7a121a.0109640a.5a6b.2e19@mx.google.com> References: <20110921094939.GA1018@client199-150.wlan.hu-berlin.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6Pkt-0004cj-LU for emacs-orgmode@gnu.org; Wed, 21 Sep 2011 12:34:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6Pkr-0001Ri-Ph for emacs-orgmode@gnu.org; Wed, 21 Sep 2011 12:34:39 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:43814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6Pkr-0001RV-N6 for emacs-orgmode@gnu.org; Wed, 21 Sep 2011 12:34:37 -0400 Received: by gya6 with SMTP id 6so1552256gya.0 for ; Wed, 21 Sep 2011 09:34:36 -0700 (PDT) In-Reply-To: <20110921094939.GA1018@client199-150.wlan.hu-berlin.de> 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 One way to do this is to use file variables to change the value of org-attach-directory. This works particularly well when you use just a few org files as in your case. For instance, you could put --8<---------------cut here---------------start------------->8--- # Local Variables: # org-attach-directory: "~/org/data/personal" # End: --8<---------------cut here---------------end--------------->8--- in your personal.org file and --8<---------------cut here---------------start------------->8--- # Local Variables: # org-attach-directory: "~/org/data/work" # End: --8<---------------cut here---------------end--------------->8--- in your work.org file. -- Darlan Cavalcante Moreira At Wed, 21 Sep 2011 11:49:39 +0200, Viktor Rosenfeld wrote: > > Hi everybody, > > so far I've only used one org file, but it's getting unwieldy and I've > decided to split it up. > > I'd also like to split up my attachment directory to reduce clutter. > For example, if I have two org files "personal.org" and "work.org" I > would like attachments to go into automatically created directories > below "~/org/data/personal" and "~/org/data/work". If a file has no > custom attachment directory specified, attachments should be created > below a default path (same as now). > > Is this possible? > > Thanks, > Viktor >