Re: [O] How to set org-make-link-description-function

2018-04-13 Thread Eric Abrahamsen
John Kitchin writes: > Here is a globally defined version that would let you define a function for > any other kind of link I think. There are probably many > variations on this theme, like storing functions in some variable as an > alist, etc. Something like that is what would happen if this w

Re: [O] How to set org-make-link-description-function

2018-04-13 Thread John Kitchin
Here is a globally defined version that would let you define a function for any other kind of link I think. There are probably many variations on this theme, like storing functions in some variable as an alist, etc. Something like that is what would happen if this was defined in the link parameters

Re: [O] How to set org-make-link-description-function

2018-04-13 Thread Eric Abrahamsen
John Kitchin writes: > Not with the way I wrote it. It should only affect your links and pass > everything else through I > think. I just meant, you can only have one of these functions set. So if I provide special behavior for ebdb links, no other function would be able to do the equivalent fo

Re: [O] How to set org-make-link-description-function

2018-04-12 Thread John Kitchin
Not with the way I wrote it. It should only affect your links and pass everything else through I think. On Thu, Apr 12, 2018 at 9:15 PM Eric Abrahamsen wrote: > John Kitchin writes: > > > I don't know how to do that either. It does seem like you can set it > globally. You can try something > >

Re: [O] How to set org-make-link-description-function

2018-04-12 Thread Eric Abrahamsen
John Kitchin writes: > I don't know how to do that either. It does seem like you can set it > globally. You can try something > like: > > #+BEGIN_SRC emacs-lisp > (setq org-make-link-description-function > (lambda (link desc) > (cond > ((s-starts-with? "ebdb:uuid/" link) > (replace-regex

Re: [O] How to set org-make-link-description-function

2018-04-12 Thread John Kitchin
I don't know how to do that either. It does seem like you can set it globally. You can try something like: #+BEGIN_SRC emacs-lisp (setq org-make-link-description-function (lambda (link desc) (cond ((s-starts-with? "ebdb:uuid/" link) (replace-regexp-in-string "ebdb:uuid/" "" link)) (t des