Re: Color in emacs IDL mode [message #14185] |
Wed, 03 February 1999 00:00 |
fireman
Messages: 49 Registered: August 1991
|
Member |
|
|
J.D. Smith (jdsmith@astrosun.tn.cornell.edu) wrote:
: Maybe add something like:
<snip>
Thank you, thank you!
But I do get errors on the following lines:
: (set-face-foreground font-lock-keyword-face "DarkGreen")
: (set-face-foreground font-lock-variable-name-face "Magenta")
as well as on the (fast-lock-mode 1), so I have commented them out for
now. Also only the strings and comments are getting colorized.
My inexpert reading of the idl.el file suggests that some of these
features won't work with emacs version < 19.29. This is still a lot
better than before!
Thanks again,
Gwyn
--
---- Gwyn F. Fireman
---- General Sciences Corporation
---- MODIS Characterization Support Team
---- Gwyn.Fireman@gsfc.nasa.gov 301-352-2118
|
|
|
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 |*|
|
|
|