From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: Highlight special string Date: Fri, 26 Nov 2010 10:52:37 -0300 Message-ID: <4cefbbaa.1245960a.7fe6.7855@mx.google.com> References: <20101124092100.92961w5rst4tyeis@webmail.df.eu> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from [140.186.70.92] (port=56817 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLyjF-0007qd-RO for emacs-orgmode@gnu.org; Fri, 26 Nov 2010 08:52:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLyjE-0003rl-Gm for emacs-orgmode@gnu.org; Fri, 26 Nov 2010 08:52:45 -0500 Received: from mail-gw0-f41.google.com ([74.125.83.41]:57996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLyjE-0003ra-DI for emacs-orgmode@gnu.org; Fri, 26 Nov 2010 08:52:44 -0500 Received: by gwj18 with SMTP id 18so3460505gwj.0 for ; Fri, 26 Nov 2010 05:52:43 -0800 (PST) In-Reply-To: <20101124092100.92961w5rst4tyeis@webmail.df.eu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Karl Maihofer Cc: emacs-orgmode@gnu.org Not exactly what you want, but for temporary highlights (useful for instance to see if you are repeating the same word too much in a text) you can use hi-lock-mode. Turn hi-lock-mode on with M-x hi-lock-mode. Then you can highlight a word with "C-x w h" (highlight-regexp) or a the line containing a word with "C-x w l" (highlight-lines-matching-regexp). Remove highlights with "C-x w r". -- Darlan At Wed, 24 Nov 2010 09:21:00 +0100, Karl Maihofer wrote: > > Hi, > > I don't know if this is an Org- or Emacs-Question. For highlighting > special strings in AucTeX I used a variable > "font-latex-user-keyword-classes" so I thought there may be an > org-specific variable to achieve what I want in orgmode. > > I'd like to highlight the strings "(ok)" and "(fail)" in my > Org-document. Ok should get a green background, fail a red one. I > think highlighting in emacs should last, but it would be great to have > these strings highlighted in HTML-export, too, if this is no problem. > > Could anybody give me a hint how to define highlighting for special > strings in orgmode? > > Thanks a lot! > Karl > > > > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode