emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Darlan Cavalcante Moreira <darcamo@gmail.com>
To: Karl Maihofer <ignoramus@gmx.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Highlight special string
Date: Fri, 26 Nov 2010 10:52:37 -0300	[thread overview]
Message-ID: <4cefbbaa.1245960a.7fe6.7855@mx.google.com> (raw)
In-Reply-To: <20101124092100.92961w5rst4tyeis@webmail.df.eu>


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 <ignoramus@gmx.de> 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

  reply	other threads:[~2010-11-26 13:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-24  8:21 Highlight special string Karl Maihofer
2010-11-26 13:52 ` Darlan Cavalcante Moreira [this message]
     [not found] ` <29926_1290779567_oAQDqlho000818_4cefbbaa.1245960a.7fe6.7855@mx.google.com>
2010-11-26 18:08   ` Karl Maihofer
     [not found]     ` <20101126190854.93661hlkuwyoopno-2RFepEojUI1937y/D5i71g@public.gmane.org>
2010-11-27  8:41       ` Sébastien Vauban

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=4cefbbaa.1245960a.7fe6.7855@mx.google.com \
    --to=darcamo@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ignoramus@gmx.de \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).