From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bcbarnes@gmail.com Newsgroups: gmane.emacs.help Subject: need help customizing font-lock colors in syntax highlighting (fortran) Date: Mon, 31 Mar 2008 12:41:35 -0700 (PDT) Organization: http://groups.google.com Message-ID: <99f4b8df-7ff4-4098-81b0-2d54b732cb74@t54g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1207018682 30749 80.91.229.12 (1 Apr 2008 02:58:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2008 02:58:02 +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 04:58:34 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 1JgWhj-0007C1-Te for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Apr 2008 04:58:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JgWh8-00044P-2k for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Mar 2008 22:57:54 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!postnews.google.com!t54g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 128.252.46.221 Original-X-Trace: posting.google.com 1206992495 23961 127.0.0.1 (31 Mar 2008 19:41:35 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 31 Mar 2008 19:41:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t54g2000hsg.googlegroups.com; posting-host=128.252.46.221; posting-account=HBJhmAkAAAADpGfaGJQBh2RuRfcuUXG1 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_2; en-us) AppleWebKit/525.13 (KHTML, like Gecko) Version/3.1 Safari/525.13, gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:157554 X-Mailman-Approved-At: Mon, 31 Mar 2008 22:57:28 -0400 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:52931 Archived-At: Hello, I've been using emacs for a long time, mostly for Fortran and Python programming. I'm currently porting some code from fixed-format to free-format Fortran, which means the extension of the source file would change from ".f" to ".f90" -- and the code, which is standard Fortran 95, would have the F90 filter (f90.el by Glenn Morris) applied instead of the fortran.el (fortran mode) filter. 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. Poking around the f90.el source and google tells me it will involve something like set-face-foreground of a font-lock mode, but I don't know what to do. Can anyone help me out in getting my syntax highlighting customized? Or should I email the maintainer of the filters? I am using emacs 22.1 on Fedora 8 and also Aquamacs 1.3 (based on emacs 22.1) on OS X Leopard. thanks, Brian