all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: bcbarnes@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: need help customizing font-lock colors in syntax highlighting  (fortran)
Date: Tue, 1 Apr 2008 08:54:38 -0700 (PDT)	[thread overview]
Message-ID: <2b906f9a-609c-4779-96fe-3e529fb90b96@p25g2000hsf.googlegroups.com> (raw)
In-Reply-To: 4sprtaxcc5.fsf@xoc2.stanford.edu

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	other threads:[~2008-04-01 15:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-31 19:41 need help customizing font-lock colors in syntax highlighting (fortran) bcbarnes
2008-04-01  7:29 ` Glenn Morris
2008-04-01 15:54   ` bcbarnes [this message]
2008-04-01  8:59 ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2b906f9a-609c-4779-96fe-3e529fb90b96@p25g2000hsf.googlegroups.com \
    --to=bcbarnes@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.