emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Attachments and refiling


From: Bastien
Subject: Re: [O] Attachments and refiling
Date: Thu, 18 Aug 2011 19:33:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Darlan,

Darlan Cavalcante Moreira <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]