From: Dale Smith <dales@vxitech.com>
To: emacs-orgmode@gnu.org
Subject: Re: Customizable link types
Date: Mon, 25 Sep 2006 14:29:40 -0400 [thread overview]
Message-ID: <kpwt7rn6jv.fsf@flexo.vxitech.com> (raw)
In-Reply-To: kplko7ompt.fsf@flexo.vxitech.com
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
next prev parent reply other threads:[~2006-09-25 18:31 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 [this message]
2006-09-26 5:48 ` Carsten Dominik
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=kpwt7rn6jv.fsf@flexo.vxitech.com \
--to=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).