Hi Darlan, Darlan Cavalcante Moreira <darc...@gmail.com> writes:
> Using the functions already provided by org-attach I could get > #+LINK: attach elisp:(org-open-file (org-attach-expand "%s")) > However, I always have to confirm the execution of the elisp code. You want to set `org-confirm-elisp-link-function' to nil. > Other useful things (just random thoughts) could be: > - Perform some operation when a file is attached, such as replacing > white-spaces in the file-name by underscores IMHO this goes beyond what org-attach.el should do: attach files. Besides, that would require even more confirmation steps. > - When a file is attached a link to it could be stored in the kill ring, > in case the user want to insert it in the current text. Alternatively, > an interactive function to insert a link to an attached file (using the > same completions we already get for opening attached files) would also > be very handy. Yes, good idea. >From latest git, set `org-attach-store-link-p' to `t' if you want a link to be stored in `org-stored-links' when attaching a file. Thanks, -- Bastien -- Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode