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
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
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
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
> >
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
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