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

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

how to change font color based on mode


From: Matt Williams
Subject: how to change font color based on mode
Date: Wed, 08 Dec 2010 15:21:38 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin)

Hello,

I'd like to change the color of a font-face based on the mode Im in.
Would I have to do this with a mode hook?
Could somebody tell me how?
In psuedo code this is what Im trying to do:

if python-mode
  font-lock-keyword-face = green
elsif perl-mode
  font-lock-keyword-face = red

Cheers,
Matt


reply via email to

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