emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Stephen J. Barr" <stevejb@uw.edu>
To: emacs-orgmode@gnu.org
Subject: hook on link creation
Date: Thu, 6 Aug 2015 17:10:01 -0700	[thread overview]
Message-ID: <CAO1hKsuVy1Q5V8LV0cumtJU9Qc_x3acsBptbZ7Zpk+QvKpCO2A@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 813 bytes --]

Greetings,

I have been thinking about a project I would like to do to add some custom
semantic markup to an org-mode. I think that links may be the best way to
do this. Looking at this page:

http://orgmode.org/manual/Adding-hyperlink-types.html

I am wondering if there is a way to have a hook that gets called on link
creation. E.g., if I type stevejb:my_word. I would like to immediately have
"stevejb:my_word" sent on dbus or something like that.

Is there existing infrastructure for this? Is this the right approach?

Thanks,
Stephen


Stephen J. Barr
PhD Student, Operations Management
Dept: Information Systems and Operations Management (ISOM)
Michael G. Foster School of Business
University of Washington
Phone:  425 516 5012
Email: stevejb@uw.edu
Twitter: @stevejb
Website: http://steve.planetbarr.com

[-- Attachment #2: Type: text/html, Size: 1713 bytes --]

             reply	other threads:[~2015-08-07  0:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-07  0:10 Stephen J. Barr [this message]
2015-08-07  1:05 ` hook on link creation John Kitchin
     [not found]   ` <CAO1hKsssL_3hrrZ6bNiw_HXxDFEvQks0ho+KZje5p13q_CKZKA@mail.gmail.com>
2015-08-07 13:56     ` John Kitchin

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=CAO1hKsuVy1Q5V8LV0cumtJU9Qc_x3acsBptbZ7Zpk+QvKpCO2A@mail.gmail.com \
    --to=stevejb@uw.edu \
    --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).