[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Proper way to "link" external files into a project?
From: |
Carsten Dominik |
Subject: |
Re: [Orgmode] Proper way to "link" external files into a project? |
Date: |
Mon, 3 Aug 2009 06:33:44 +0200 |
On Jul 15, 2009, at 10:35 PM, Andreas Rottmann wrote:
Sebastian Rose <address@hidden> writes:
Andreas Rottmann <address@hidden> 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 -- <http://rotty.yi.org/>
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Orgmode] Proper way to "link" external files into a project?,
Carsten Dominik <=