From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Rottmann Subject: Re: Proper way to "link" external files into a project? Date: Wed, 15 Jul 2009 22:35:41 +0200 Message-ID: <871voh3crm.fsf@vir.lan> References: <87r5wj4bii.fsf@delenn.lan> <87skgy7r6y.fsf@kassiopeya.MSHEIMNETZ> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRBCj-00083M-Ve for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 16:35:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRBCf-00081W-Ae for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 16:35:53 -0400 Received: from [199.232.76.173] (port=41529 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRBCf-00081T-2V for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 16:35:49 -0400 Received: from mail.gmx.net ([213.165.64.20]:38598) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MRBCe-00053G-If for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 16:35:48 -0400 In-Reply-To: <87skgy7r6y.fsf@kassiopeya.MSHEIMNETZ> (Sebastian Rose's message of "Wed, 15 Jul 2009 01:58:13 +0200") 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: Sebastian Rose Cc: org-mode mailing list 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 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 --