Hi Darlan, Darlan Cavalcante Moreira <darc...@gmail.com> 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