[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: Customizable link types

From: Carsten Dominik
Subject: Re: [Orgmode] Re: Customizable link types
Date: Tue, 26 Sep 2006 07:48:18 +0200

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";)))


- Carsten

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

Dale Smith <address@hidden> 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

(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 P. Smith
216-447-8951 FAX

Emacs-orgmode mailing list

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]