help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text properties in tex mode


From: martin rudalics
Subject: Re: text properties in tex mode
Date: Sat, 04 Oct 2008 19:02:26 +0200
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)

> 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?

How about using

(add-hook 'latex-mode-hook
          (lambda ()
            (set (make-local-variable 'facemenu-add-face-function) nil)))

martin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]