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

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

Colourising tex keywords


From: fatiparty
Subject: Colourising tex keywords
Date: Tue, 11 Jan 2022 18:09:38 +0100 (CET)

Jan 12, 2022, 04:41 by michael_heerdegen@web.de:

> Emanuel Berg via Users list for the GNU Emacs text editor
> <help-gnu-emacs@gnu.org> writes:
>
>> See if this works in Emacs Lisp mode, if/when it does (it does
>> here) do the same for your mode, if it doesn't work there,
>> well then something is up ...
>>
>
> Yes, that code works for me, too.
>
> Maybe font-lock-mode is just not enabled in the tested buffer or so.
>
> Michael.
>

Have been using "texcom-typeface" although the colour definition for
the tex keywords is in "texcom-colour".  When I use "texcom-colour"
in "texcom-cluster", I do not see the change.

Perhaps I need some additional calls to enable "font-lock-mode"?
(defface texcom-colour
  '( (default :inherit bold)
     ( ((class color) (background light)) :foreground "#00FF00" )
     ( ((class color) (background dark))  :foreground "#00FF00" )
     (t :inherit font-lock-builtin-face) )
  "User defined colour typeface for tex command keywords.")

(defface texcom-typeface
  '((t :inherit font-lock-keyword-face)) 
   "Colour typeface for tex command keywords.")





reply via email to

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