Home »
Public Forums »
archive »
Re: Color in emacs IDL mode
Re: Color in emacs IDL mode [message #14191 is a reply to message #14185] |
Tue, 02 February 1999 00:00  |
J.D. Smith
Messages: 214 Registered: August 1996
|
Senior Member |
|
|
Gwyn Fireman wrote:
>
> I can't seem to get color working in emacs. I think I have turned on
> the font-lock mode, but the only indication is that string constants
> are underlined. Perhaps I need to set something in my .Xdefaults file?
> I am new to customizing emacs and would appreciate any help.
Maybe add something like:
;;setup display colors for font-lock
(set-face-foreground font-lock-comment-face "FireBrick")
(set-face-foreground font-lock-string-face "DarkOrchid")
(set-face-foreground font-lock-keyword-face "DarkGreen")
(set-face-foreground font-lock-function-name-face "Navy")
(set-face-foreground font-lock-variable-name-face "Magenta")
(set-face-foreground font-lock-reference-face "Yellow")
to your idl-mode-hook. Also try adding (fast-lock-mode 1) for real-time
re-fontification.
Good Luck,
JD
__
J.D. Smith |*| WORK: (607) 255-5842
Cornell University Dept. of Astronomy |*| (607) 255-6263
304 Space Sciences Bldg. |*| FAX: (607) 255-5875
Ithaca, NY 14853 |*|
|
|
|
Current Time: Wed Oct 08 17:17:21 PDT 2025
Total time taken to generate the page: 0.00391 seconds