From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: need help customizing font-lock colors in syntax highlighting (fortran) Date: Tue, 01 Apr 2008 00:29:14 -0700 Organization: None Message-ID: <4sprtaxcc5.fsf@xoc2.stanford.edu> References: <99f4b8df-7ff4-4098-81b0-2d54b732cb74@t54g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207035642 9904 80.91.229.12 (1 Apr 2008 07:40:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2008 07:40:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 01 09:41:13 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jgb7I-0002rr-Fz for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Apr 2008 09:41:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jgb6g-0002kn-3i for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Apr 2008 03:40:34 -0400 Original-Path: shelby.stanford.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: xoc2.stanford.edu Original-X-Trace: news.Stanford.EDU 1207034954 9154 171.64.109.31 (1 Apr 2008 07:29:14 GMT) Original-X-Complaints-To: news@news.stanford.edu X-Spook: Maubere Resistance Kach airframe NSA detonators X-Ran: \_HkW8q,?Bl@a{7},joX6k9@nDFGSA)^}g!51?x#BD,p/JRKR>SiU/h6WsECwjvzJ}maqp X-Hue: cyan X-Attribution: GM Mail-Copies-To: nobody User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cancel-Lock: sha1:Ogca8DBffWWcvB2+WxwC6ZYdPhk= Original-Xref: shelby.stanford.edu gnu.emacs.help:157568 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52937 Archived-At: bcbarnes@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)) "\\")) f90-font-lock-keywords-4 (append f90-font-lock-keywords-3 (list f90-hpf-keywords-re)))))