[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to change colors?
From: |
Raghava Kashyapa |
Subject: |
Re: How to change colors? |
Date: |
Tue, 24 Apr 2001 01:16:33 -0700 |
Hi!
You could try adding these LISP lines in your .emacs file (present in your
home directory). You could change the colors however you would like.
-Raghava
; Face to use for comments
(set-face-foreground 'font-lock-comment-face "slate gray")
; Face to use for function and variable names
(set-face-foreground 'font-lock-function-name-face "blue")
(make-face-bold 'font-lock-function-name-face)
(set-face-foreground 'font-lock-variable-name-face "blue")
(make-face-bold 'font-lock-variable-name-face)
; Face to use for strings and documentation strings
(set-face-foreground 'font-lock-string-face "blue4")
(set-face-foreground 'font-lock-doc-string-face "blue4")
; Face to use for preprocessor commands
(set-face-foreground 'font-lock-preprocessor-face "green4")
(make-face-bold 'font-lock-preprocessor-face)
; Face to use for keywords
(set-face-foreground 'font-lock-keyword-face "blue3")
(make-face-bold 'font-lock-keyword-face)
; Face to use for reference names
(set-face-foreground 'font-lock-reference-face "red3")
(make-face-bold 'font-lock-reference-face)
; Face to use for type names
(set-face-foreground 'font-lock-type-face "medium orchid")
(make-face-bold 'font-lock-type-face)
Axel Goldbach wrote:
> Hi,
>
> I'm new to emacs and I want it to use it as a develpment environment for Java.
>
> I've switched on syntax highlightning but I don't like the default colors.
> How do I change the colors?
>
> I've found something called "faces" but I haven't found where I can associate
> a face or whatever e.g. to a Java keyword. Do I have to write a Lisp script?
> If so may someone knows a source where I can find a good tutorial on Lisp
> because I don't know Lisp.
>
> Thanks in advance,
> Axel.
>
> --
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> Weitergabe dieser Mail ist nicht gestattet.
>
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error) please
> notify the sender immediately and destroy this e-mail. Any unauthorised
> copying, disclosure or distribution of the material in this e-mail is
> strictly forbidden.
>
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs