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 desc)))) #+END_SRC It doesn't seem too ideal, as it seems like something that should get set in the link parameters. Does anyone else have an idea? John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Thu, Apr 12, 2018 at 5:54 PM, Eric Abrahamsen wrote: > I've coded Org link support for EBDB, a contact management package, > where the :complete key looks like: > > (lambda () > (format "ebdb:uuid/%s" > (ebdb-record-uuid > (ebdb-prompt-for-record > (ebdb-records))))) > > Which prompts for a record based on the contact name, then inserts the > contact's UUID as the link. > > The problem is that Org then prompts for a link description. I'd like to > provide the contact name as a default description (the user has just > typed it in, after all), but haven't figured out how to do that. > > Clearly `org-make-link-description-function' is meant to play this role, > and it would work perfectly, but I don't know to set it. I can't set it > globally, but also don't know how to let-bind it locally. > > How am I supposed to use it? > > Thanks, > Eric > > >