From: harven <harven@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: text properties in tex mode
Date: Sat, 04 Oct 2008 19:44:46 +0200 [thread overview]
Message-ID: <m28wt4mf01.fsf@free.fr> (raw)
In-Reply-To: mailman.225.1223135509.25473.help-gnu-emacs@gnu.org
Kostas Oikonomou <k.oikonomou@att.net> writes:
> Hello,
>
> I use Emacs's plain TeX mode (i.e. not AucTeX), with font-lock
> deactivated. (And Emacs 22.3.)
>
> I'd like to be able to change the background color of a piece of text
> to, say, yellow, by selecting it with the mouse, and then doing Edit
> -> Text Properties -> Background Color.
>
> However this fails with a message "Face ((:background yellow)) not
> configured for latex mode".
> How do I get around this?
This is probably because font-lock-mode is enabled by default in latex-mode.
Thus any face you set is overwritten by the font-lock processing.
Disabling font-lock-mode (M-x font-lock-mode) brings back the menu
you are interested in, but you will lose the coloring provided by
latex-mode.
Another solution would be to use overlays instead of faces for
region highlighting. That's what use the highlight-regexp command;
this command highlight words matching a regexp. I think there is
an extension called highlight.el, by Drew Adams, which provides
easy access to overlays. Have a look at the wiki
http://www.emacswiki.org/cgi-bin/wiki/HighLight
Hope that helps
next parent reply other threads:[~2008-10-04 17:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.225.1223135509.25473.help-gnu-emacs@gnu.org>
2008-10-04 17:44 ` harven [this message]
2008-10-07 5:33 text properties in tex mode martin rudalics
2008-10-07 12:56 ` Kostas Oikonomou
2008-10-07 13:03 ` Allan Gottlieb
2008-10-07 13:31 ` martin rudalics
2008-10-07 13:42 ` Kostas Oikonomou
2008-10-07 14:00 ` martin rudalics
-- strict thread matches above, loose matches on Subject: below --
2008-10-07 1:16 Kostas Oikonomou
[not found] <mailman.320.1223253849.25473.help-gnu-emacs@gnu.org>
2008-10-06 7:14 ` harven
2008-10-06 0:44 Kostas Oikonomou
[not found] <mailman.292.1223226411.25473.help-gnu-emacs@gnu.org>
2008-10-05 17:57 ` harven
2008-10-05 15:11 Kostas Oikonomou
2008-10-05 17:53 ` Drew Adams
2008-10-04 17:02 martin rudalics
2008-10-04 15:40 Kostas Oikonomou
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=m28wt4mf01.fsf@free.fr \
--to=harven@free.fr \
--cc=help-gnu-emacs@gnu.org \
/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.