From: Tom Willemsen <tom@ryuslash.org>
To: "Sohail Somani" <sohail@taggedtype.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Turning comments into hyperlinks
Date: Thu, 19 Jul 2012 11:45:27 +0200 [thread overview]
Message-ID: <m3wr20jd8o.fsf@ryuslash.org> (raw)
In-Reply-To: <ju6g8k$j0e$1@dough.gmane.org>
Hey Sohail,
Sohail Somani <sohail@taggedtype.net> writes:
> I have come across an inconvenience which I would like to resolve. I am
> working on a codebase which has the following patterns throughout the code:
>
> // JIRA 12312
> // ISSUE 12312
> // KEY-12312
>
> What I would like to do is match these patterns and turn them into
> hyperlinks that open in the browser. So for example, I might turn
> KEY-12312 into a hyperlink to http://jira.myhomies.com/KEY-12312 but
> continue to display the original text.
>
> How would I accomplish this with cc-mode or emacs in general?
Have you looked at `bug-reference-prog-mode'? From what I read it seems
to fit perfectly with what you're hoping to accomplish, though I haven't
tried using it myself and I think its only available in emacs 24.
next prev parent reply other threads:[~2012-07-19 9:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-18 14:12 Turning comments into hyperlinks Sohail Somani
2012-07-19 9:45 ` Tom Willemsen [this message]
2012-07-19 14:55 ` Sohail Somani
[not found] <mailman.5073.1342620934.855.help-gnu-emacs@gnu.org>
2012-07-18 14:28 ` Pascal J. Bourguignon
2012-07-18 14:49 ` Yagnesh Raghava Yakkala
2012-07-19 16:02 ` PJ Weisberg
2012-07-18 15:28 ` Sohail Somani
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3wr20jd8o.fsf@ryuslash.org \
--to=tom@ryuslash.org \
--cc=help-gnu-emacs@gnu.org \
--cc=sohail@taggedtype.net \
/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.
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).