From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pocmatos@gmail.com (Paulo J. Matos) Newsgroups: gmane.emacs.help Subject: Getting minor mode to read word Date: Thu, 18 Nov 2010 13:39:58 +0000 Message-ID: <86wroalpht.fsf@pm18pc01.europe.root.pri> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1290087648 25670 80.91.229.12 (18 Nov 2010 13:40:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Nov 2010 13:40:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 18 14:40:44 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PJ4jD-0003hd-OP for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Nov 2010 14:40:43 +0100 Original-Received: from localhost ([127.0.0.1]:53343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJ4jA-0002dA-3W for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Nov 2010 08:40:40 -0500 Original-Received: from [140.186.70.92] (port=41971 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJ4in-0002cp-1Y for help-gnu-emacs@gnu.org; Thu, 18 Nov 2010 08:40:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJ4il-0002dc-Di for help-gnu-emacs@gnu.org; Thu, 18 Nov 2010 08:40:16 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:45249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJ4il-0002d6-83 for help-gnu-emacs@gnu.org; Thu, 18 Nov 2010 08:40:15 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PJ4ij-0003JW-91 for help-gnu-emacs@gnu.org; Thu, 18 Nov 2010 14:40:13 +0100 Original-Received: from 193.128.72.68 ([193.128.72.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Nov 2010 14:40:13 +0100 Original-Received: from pocmatos by 193.128.72.68 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Nov 2010 14:40:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 193.128.72.68 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:L/TjyxLb3B0GrzNnkK2UtjaQpiM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75399 Archived-At: 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? Cheers, -- PMatos