all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: "Paulo J. Matos" <pocmatos@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Getting minor mode to read word
Date: Thu, 18 Nov 2010 14:54:20 +0100	[thread overview]
Message-ID: <AANLkTim+g+mCELV_PY+c=fSC69aJ4nzRXT0=Ui5xO2Su@mail.gmail.com> (raw)
In-Reply-To: <86wroalpht.fsf@pm18pc01.europe.root.pri>

On Thu, Nov 18, 2010 at 2:39 PM, Paulo J. Matos <pocmatos@gmail.com> wrote:
> Hi all,
>
> I am trying to create a very simple minor mode to start with. Once the
> mode is loaded I just want to transform all the strings matching a given
> regexp: "B-[0-9]+" into a url which once clicked, opens the default
> browser with a given url.
>
> My problem is to start up. How do I tell emacs that there is a minor
> mode that people can load and which hook can I use to enable the search
> function (for the regexp) to perform the search and replace the text for
> a url everytime the buffer changes?

Look at font lock keywords.



  reply	other threads:[~2010-11-18 13:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-18 13:39 Getting minor mode to read word Paulo J. Matos
2010-11-18 13:54 ` Lennart Borgman [this message]
2010-11-18 14:08   ` Paulo J. Matos
2010-11-18 14:11     ` Lennart Borgman
2010-11-18 15:01       ` Paulo J. Matos

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTim+g+mCELV_PY+c=fSC69aJ4nzRXT0=Ui5xO2Su@mail.gmail.com' \
    --to=lennart.borgman@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=pocmatos@gmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.