emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@gnu.org>
To: "Kévin Le Gouguec" <kevin.legouguec@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Default description for abbreviated links
Date: Sun, 06 Sep 2020 09:58:19 +0200	[thread overview]
Message-ID: <874kobcp5w.fsf@gnu.org> (raw)
In-Reply-To: <87mu3ze52c.fsf@gmail.com> (=?utf-8?Q?=22K=C3=A9vin?= Le Gouguec"'s message of "Thu, 16 Jul 2020 19:35:23 +0200")

Hello Kévin,

Kévin Le Gouguec <kevin.legouguec@gmail.com> writes:

> I like #+LINK keywords because they make documents self-sufficient:
> anyone opening my document can follow these links or export the buffer;
> they do not need to run some Elisp to add to org-link-parameters.
> One thing I don't know how to customize, however, is how these links are
> exported when they have no description.  

thanks for sharing your need and ideas.

I think we can allow

  #+LINK: bug [[https://debbugs.gnu.org/%s][bug:%s]]

to define an abbreviated link producing the output you want.

Same in org-link-abbrev-alist(-local):

  (("bug" . "[[https://debbugs.gnu.org/%s][bug:%s]]"))

What do you think?  I'd rather not add an option or modify the
structure of org-link-abbrev-alist(-local).



  reply	other threads:[~2020-09-06  7:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-16 17:35 Default description for abbreviated links Kévin Le Gouguec
2020-09-06  7:58 ` Bastien [this message]
2020-09-21 16:19   ` Kévin Le Gouguec

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=874kobcp5w.fsf@gnu.org \
    --to=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=kevin.legouguec@gmail.com \


* 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).