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

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

Re: need help customizing font-lock colors in syntax highlighting (fort


From: bcbarnes
Subject: Re: need help customizing font-lock colors in syntax highlighting (fortran)
Date: Tue, 1 Apr 2008 08:54:38 -0700 (PDT)
User-agent: G2/1.0

On Apr 1, 2:29 am, Glenn Morris <rgm+n...@stanford.edu> wrote:
> bcbar...@gmail.com wrote:
> > In the old fortran mode filter, intrinsics such as mod, exp, and
> > others would be highlighting in a different color (say, pink) than the
> > control flow commands such as if/endif, do/enddo (which would be in
> > purple). In the F90 mode, these commands are all highlighted in the
> > same color. I find this to be undesirable, but I'm not sure how to
> > change it.
>
> I don't really know why it is like it is, but it is. Anyway, add to
> ~/.emacs:
>
> (eval-after-load "f90"
>   '(progn
>      (setq f90-font-lock-keywords-3
>       (append f90-font-lock-keywords-2
>           (list
>            f90-keywords-level-3-re
>            f90-operators-re
>            (list f90-procedures-re '(1 font-lock-builtin-face keep))
>            "\\<real\\>"))
>       f90-font-lock-keywords-4 (append f90-font-lock-keywords-3
>           (list f90-hpf-keywords-re)))))


Excellent, Glenn!  That does exactly what I wanted.  Tested in both
emacs 22.1 and Aquamacs 1.3 / OS X.  Thanks.

-Brian


reply via email to

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