From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dale Smith Subject: Re: Customizable link types Date: Mon, 25 Sep 2006 14:29:40 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GRvEk-0000xs-Rg for emacs-orgmode@gnu.org; Mon, 25 Sep 2006 14:31:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GRvEk-0000wj-2W for emacs-orgmode@gnu.org; Mon, 25 Sep 2006 14:31:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRvEj-0000wa-Ps for emacs-orgmode@gnu.org; Mon, 25 Sep 2006 14:31:25 -0400 Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GRvJC-0003Rm-I9 for emacs-orgmode@gnu.org; Mon, 25 Sep 2006 14:36:02 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GRvEO-0002ap-6R for emacs-orgmode@gnu.org; Mon, 25 Sep 2006 20:31:04 +0200 Received: from 66.178.229.162 ([66.178.229.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Sep 2006 20:31:04 +0200 Received: from dales by 66.178.229.162 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Sep 2006 20:31:04 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Dale Smith 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