comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Color in emacs IDL mode
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Color in emacs IDL mode [message #14185] Wed, 03 February 1999 00:00
fireman is currently offline  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 Go to previous message
J.D. Smith is currently offline  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 |*|
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: ISHFT in IDL 5.2 on OpenVMS 7.1
Next Topic: Re: corrupted descriptor?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:39:39 PDT 2025

Total time taken to generate the page: 0.00527 seconds