At Fri, 19 Aug 2011 10:46:26 +0200,
Bastien <b...@altern.org> wrote:

What about org-add-link-type?

Besides the new link type name, org-add-link-type can receives two
functions, one used to follow the link and another to export the link.

I was able to make the attach link type work by using org-add-link-type,
where the "follow" function is practically the same code I have used
with #+LINK.

However, I could not make the the "export" part work because I can't use
org-attach-expand in it. Therefore, I don't know how to get the attach
directory inside a function that I can pass to org-add-link-type as the
export function. Unfortunately, my elisp skills are very limited to go any
further for now.

--
Darlan

> 
> Hi Darlan,
> 
> Darlan Cavalcante Moreira <darc...@gmail.com> writes:
> 
> > There is probably a way to make the attach link type also work when
> > exporting the org buffer, but since I don't need this right now I didn't
> > search how to do it.
> 
> You could use a `org-export-preprocess-hook' to convert those "attach"
> links into proper "file" links.
> 
> -- 
>  Bastien

Reply via email to