From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Maihofer Subject: Re: Highlight special string Date: Fri, 26 Nov 2010 19:08:54 +0100 Message-ID: <20101126190854.93661hlkuwyoopno@webmail.df.eu> References: <20101124092100.92961w5rst4tyeis@webmail.df.eu> <29926_1290779567_oAQDqlho000818_4cefbbaa.1245960a.7fe6.7855@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=34675 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PM2jE-0005AU-Vs for emacs-orgmode@gnu.org; Fri, 26 Nov 2010 13:09:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PM2jA-0001oh-Jt for emacs-orgmode@gnu.org; Fri, 26 Nov 2010 13:09:00 -0500 Received: from smtprelay01.ispgateway.de ([80.67.18.13]:37969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PM2jA-0001oL-F0 for emacs-orgmode@gnu.org; Fri, 26 Nov 2010 13:08:56 -0500 In-Reply-To: <29926_1290779567_oAQDqlho000818_4cefbbaa.1245960a.7fe6.7855@mx.google.com> Content-Disposition: inline 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: Darlan Cavalcante Moreira Cc: emacs-orgmode@gnu.org Hi Darlan! Thanks a lot! That's a good solution. Regards, Karl Darlan Cavalcante Moreira schrieb: > > 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! >