From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Attachments and refiling Date: Thu, 18 Aug 2011 19:33:37 +0200 Message-ID: <87pqk2lj4e.fsf@altern.org> References: <87ei1rrdzd.fsf@gnu.org> <4e21b345.c74cec0a.7e49.3340@mx.google.com> <8739hvwikz.fsf@altern.org> <4e331ef7.47c3ec0a.7625.6ac7@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qu6Si-0001ZY-BH for emacs-orgmode@gnu.org; Thu, 18 Aug 2011 13:33:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qu6Sh-0007CY-D9 for emacs-orgmode@gnu.org; Thu, 18 Aug 2011 13:33:00 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:38271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qu6Sh-0007CK-6v for emacs-orgmode@gnu.org; Thu, 18 Aug 2011 13:32:59 -0400 Received: by wwf10 with SMTP id 10so1832574wwf.30 for ; Thu, 18 Aug 2011 10:32:58 -0700 (PDT) In-Reply-To: <4e331ef7.47c3ec0a.7625.6ac7@mx.google.com> (Darlan Cavalcante Moreira's message of "Fri, 29 Jul 2011 17:58:27 -0300") 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: Darlan Cavalcante Moreira Cc: Gustav =?iso-8859-1?Q?Wikstr=F6m?= , emacs-orgmode@gnu.org Hi Darlan, Darlan Cavalcante Moreira writes: > I requested this some time ago [1]. While there is not a built-in attach > link type, org provides you with ways to easily create this functionality. > > In the setup part in my org-files I put > #+LINK: attach elisp:(org-open-file (org-attach-expand "%s")) > > Now I can use the "attach" link type, but org will ask me if I want to > allow executing the elisp code. To avoid this you can even set > org-confirm-elisp-link-function to nil (I don't like this because it allows > any elisp code in links) or you can set org-confirm-elisp-link-not-regexp > appropriately. > > In my case I use > : (setq org-confirm-elisp-link-not-regexp "org-open-file") > > This works very well. This is a nice and useful hack -- I added it to Worg/org-hacks.org. Thanks! -- Bastien