Re: [O] org-link interface

2016-10-13 Thread John Kitchin
I do not know if you can do that. I would do something like this. (defun insert-foo-link (path) (interactive "sfoo path: ") (insert (format "[[foo:%s][%s]]" path path))) Daniele Nicolodi writes: > On 10/13/16 8:14 AM, John Kitchin wrote: >> In org8, this is not that easy to do, but not imposs

Re: [O] org-link interface

2016-10-13 Thread Daniele Nicolodi
On 10/13/16 12:02 PM, John Kitchin wrote: > I do not know if you can do that. I would do something like this. > > (defun insert-foo-link (path) > (interactive "sfoo path: ") > (insert (format "[[foo:%s][%s]]" path path))) This has the drawback that it requires a different key-bind, instead than

Re: [O] org-link interface

2016-10-13 Thread Daniele Nicolodi
On 10/13/16 8:14 AM, John Kitchin wrote: > In org8, this is not that easy to do, but not impossible. > > Why do not you want to use [[foo:bar][bar]]? Hi John, I'm fine using [[foo:bar][bar]], but it is much longer to type. Slightly changing my question: there is a way to instruct org-insert-lin

[O] org-link interface

2016-10-11 Thread Daniele Nicolodi
Hello, I would like to add a new link type to org-mode. Following the example in the manual it is a very easy task. However I would like to customize how the link is visualized, specifically I would like a link like "[[foo:bar]]" to be visualized simply as "bar" where the protocol type has been