From: Bastien <bzg@altern.org>
To: emacs-orgmode@gnu.org
Subject: Re: Feature request: custom link handlers
Date: Fri, 30 Nov 2007 12:46:57 +0000 [thread overview]
Message-ID: <87wsrzkiim.fsf@bzg.ath.cx> (raw)
In-Reply-To: <loom.20071130T100624-731@post.gmane.org> (Tom Weissmann's message of "Fri, 30 Nov 2007 10:25:38 +0000 (UTC)")
Tom Weissmann <trmsw@yahoo.co.uk> writes:
> This is basically a request to be able to create custom link handlers.
>
> For example, my `org-link-abbrev-alist' is this:
>
> `(("wiki" . org-link-abbrev-wiki)
> ("bmk" . org-link-abbrev-bookmark)
> ("POA" . org-link-abbrev-poa))
>
>
> Only one of these actually returns a link that Org mode can use: wiki returns a
> url. "bmk" opens a bookmark and "POA" opens another application; neither return
> anything, so using them raises an error message.
I'm not sure to understand.
For now `org-link-abbrev-alist' looks like:
'(("google" . "http://www.google.com/search?q=%s"))
where the cdr of each cell is a formatting string in which %s stand for
the text after "::" (or ":"). So for example :
[[google::orgmode]]
is the abbreviated form of
[[http://www.google.com/search?q=orgmode]]
Are you suggesting to replace "http://www.google.com/search?q=%s" by a
function that would handle the text after "::" in a different way than
`format' is currently doing?
I think a step by step example would be useful here.
--
Bastien
next prev parent reply other threads:[~2007-11-30 12:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-30 10:25 Feature request: custom link handlers Tom Weissmann
2007-11-30 12:46 ` Bastien [this message]
2007-11-30 13:50 ` Tom Weissmann
2007-11-30 14:02 ` Bastien
2007-11-30 14:14 ` Bastien
2007-11-30 14:44 ` Tom Weissmann
2007-11-30 15:01 ` Bastien
2007-11-30 16:22 ` Tom Weissmann
2007-11-30 16:37 ` Tom Weissmann
2007-11-30 16:51 ` Bastien
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=87wsrzkiim.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--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).