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 <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]
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



_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to