emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Dale Smith <dales@vxitech.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Customizable link types
Date: Tue, 26 Sep 2006 07:48:18 +0200	[thread overview]
Message-ID: <71e2e5b4f2a0542057fc5f03e8781c5d@science.uva.nl> (raw)
In-Reply-To: <kpwt7rn6jv.fsf@flexo.vxitech.com>

Looks good, except that I will also allow printf formats so that your 
bar
example can be written more easily as


(setq org-userlink-alist
   '((foo . "http://some.foo.org/")
     (bar . "http://some.site/%s/?key=yadda")))

Thanks.

- Carsten

On Sep 25, 2006, at 20:29, Dale Smith wrote:

> Dale Smith <dales@vxitech.com> writes:
>
>> What I'm really asking is a way to extend the current list of link
>> types (gnus:, file:, vm:, etc.) with some user-defined types.
>
> How about an alist of (type . replacement), with string as simple
> string replacement, and maybe a function to call for a more complicated
> transformation?
>
> (defun bar-converter (arg)
>   (concat "http://some.site/" arg "/?key=yadda"))
>
> (setq org-userlink-alist
>       '((foo . "http://some.foo.org/")
>         (bar . bar-converter)))
>
> So then links like:
>   foo:something -> http://some.foo.org/something.
>   bar:123  ->  http://some.site/123/?key=yadda
>
> Just and idea..
>
>   -Dale
>
> -- 
> Dale P. Smith
> dales@vxitech.com
> 216-447-4059
> 216-447-8951 FAX
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

  reply	other threads:[~2006-09-26  6:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-22 21:57 Customizable link types Dale Smith
2006-09-25  7:01 ` Carsten Dominik
2006-09-25 17:55   ` Dale Smith
2006-09-25 18:29     ` Dale Smith
2006-09-26  5:48       ` Carsten Dominik [this message]
2006-09-25 18:48     ` Carsten Dominik

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

  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=71e2e5b4f2a0542057fc5f03e8781c5d@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=dales@vxitech.com \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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