emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
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))))
> 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...

  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:

  List information: https://www.orgmode.org/

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


* 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 public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).