From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
Subject: Re: How to set org-make-link-description-function
Date: Thu, 12 Apr 2018 21:12:28 -0700 [thread overview]
Message-ID: <87bmenu4lv.fsf@ericabrahamsen.net> (raw)
In-Reply-To: CAJ51ETr7p9XF1BX0xSQLoZhnzVJPTM-evafJKqubVixT1vUG1g@mail.gmail.com
John Kitchin <jkitchin@andrew.cmu.edu> 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-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
Right, setting it globally doesn't seem feasible at all, it would just
be clobbering left and right...
next prev parent reply other threads:[~2018-04-13 4:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-13 0:54 How to set org-make-link-description-function Eric Abrahamsen
2018-04-13 2:05 ` John Kitchin
2018-04-13 4:12 ` Eric Abrahamsen [this message]
2018-04-13 4:39 ` John Kitchin
2018-04-13 17:23 ` Eric Abrahamsen
2018-04-13 20:32 ` John Kitchin
2018-04-13 23:58 ` Eric Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bmenu4lv.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.