From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Proper way to "link" external files into a project? Date: Mon, 3 Aug 2009 06:33:44 +0200 Message-ID: <3C7C4E28-99EB-4B36-A1D1-5330089DB9CE@gmail.com> References: <87r5wj4bii.fsf@delenn.lan> <87skgy7r6y.fsf@kassiopeya.MSHEIMNETZ> <871voh3crm.fsf@vir.lan> Mime-Version: 1.0 (Apple Message framework v935.3) 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 1MXpFA-00060U-Fi for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 00:33:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXpF5-0005x3-HJ for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 00:33:51 -0400 Received: from [199.232.76.173] (port=41532 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXpF5-0005wv-9I for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 00:33:47 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:47818) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXpF4-00029W-S7 for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 00:33:47 -0400 Received: by mail-ew0-f211.google.com with SMTP id 7so1039117ewy.42 for ; Sun, 02 Aug 2009 21:33:46 -0700 (PDT) In-Reply-To: <871voh3crm.fsf@vir.lan> 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: Andreas Rottmann Cc: org-mode mailing list On Jul 15, 2009, at 10:35 PM, Andreas Rottmann wrote: > Sebastian Rose writes: > >> Andreas Rottmann writes: >>> Hi! >>> >>> I'd like to include several files into an org-mode project that live >>> outside the project tree. I tried to just symlink them into the >>> appropriate place into my project, and thought that might suffice >>> to get >>> them published correctly, but that doesn't work out, as org-mode >>> doesn't >>> consider the symlink's name, but the "true" filename; for example, I >>> have this: >> >> >> First of all: How about hardlinks? >> > I'd rather not use them in this case. > >> >> Second: >> >> See >> http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php#sec-7.1 >> >> That shows how you can share files between projects, simply by >> pulling >> them in through a special export project. >> I use this technique a lot. One advantage is that each project has a >> complete set of files. >> The drawbacks are minor for my use-case, but that might vary. But as >> linking was enough, this approach should be fine. >> > Thanks! I'm now using this approach, and it works well. The only > drawback for me is that I have to "pollute" the included projects' org > files with a line like this: > > #+SETUPFILE: ~/.emacs.d/org-templates/level-2.org IIUC, you don't need to do this. Since you are only linking to these files, you can simply define a project component that will make sure these files will be copied into the correct location. Then use links with relative path, and this should do the trick. The level-dependent setupfiles Sebastian describes in his tutorial are for different purposes. - Carsten > > Ideally, I'd like to have that information inferred, or at least > external to the included projects, as they should not have to "know" > at > which location they are used. You don't know about a trick how to get > around this? I'd also be willing to write some elisp to that end... > > Regards, Rotty > -- > Andreas Rottmann -- > > > _______________________________________________ > 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