From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: easy way to link to file in attachment directory? Date: Thu, 04 Sep 2014 19:19:57 -0300 Message-ID: <8738c7ni42.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPfO0-0006GV-K0 for emacs-orgmode@gnu.org; Thu, 04 Sep 2014 18:20:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPfNr-0000ev-Ji for emacs-orgmode@gnu.org; Thu, 04 Sep 2014 18:20:12 -0400 Received: from mail-qg0-x235.google.com ([2607:f8b0:400d:c04::235]:39141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPfNr-0000cj-FP for emacs-orgmode@gnu.org; Thu, 04 Sep 2014 18:20:03 -0400 Received: by mail-qg0-f53.google.com with SMTP id z107so10614668qgd.26 for ; Thu, 04 Sep 2014 15:20:02 -0700 (PDT) In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Mirko Vukovic Cc: emacs-orgmode@gnu.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