[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Turning comments into hyperlinks
From: |
Tom Willemsen |
Subject: |
Re: Turning comments into hyperlinks |
Date: |
Thu, 19 Jul 2012 11:45:27 +0200 |
User-agent: |
mu4e 0.9.8.5; emacs 24.1.50.1 |
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.