From: Darlan Cavalcante Moreira <darcamo@gmail.com>
To: Mirko Vukovic <mirko.vukovic@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: easy way to link to file in attachment directory?
Date: Thu, 04 Sep 2014 19:19:57 -0300 [thread overview]
Message-ID: <8738c7ni42.fsf@gmail.com> (raw)
In-Reply-To: <loom.20140904T154920-56@post.gmane.org>
I have this
#+LINK: attach elisp:(org-open-file (org-attach-expand "%s"))
in all of my org-mode files. In fact, I have this line, among others, in
an org-mode setup file which is included in all of my org-mode files
using "#+SETUPFILE:"
Then I can create a link to an attachment with
[[attach:filename_without_any_path.extension][description]]
Also, just after attaching a new file org will automatically store the
link so that you can use "C-c C-l" to include the link.
--
Darlan Cavalcante Moreira
darcamo@gmail.com
mirko.vukovic@gmail.com writes:
> Hello,
>
> Is there a way to insert a link to a file in the attachment directory?
>
> Currently, I open the attachment directory in emacs and copy the full path.
> then in the document I create the link using org-insert-link (C-u C-c C-l).
>
> Thanks,
>
> Mirko
next prev parent reply other threads:[~2014-09-04 22:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-04 13:54 easy way to link to file in attachment directory? Mirko Vukovic
2014-09-04 22:19 ` Darlan Cavalcante Moreira [this message]
2014-09-05 10:27 ` [PATCH] Add a support for linking against an attachment of current entry (was: easy way to link to file in attachment directory?) Samuel Loury
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8738c7ni42.fsf@gmail.com \
--to=darcamo@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mirko.vukovic@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.