On 6/29/05, Peter Dyballa <[EMAIL PROTECTED]> wrote:
> 
> Am 29.06.2005 um 21:25 schrieb Gustavo Seabra:
> 
> > I'm working witha code that has both fortran 77 and fortran 90 parts.
> > All the
> > files, however, are named *.f, and emacs always opens them with the
> > 'fortran
> > mode', which is actually more fortran77.
> 
> Why don't you let your f90 files begin with a comment:
> 
>     C -*- mode: f90; coding: iso-8859-15; -*-
> 
> This line among the first few switches GNU Emacs in the right mood.
> 
> --
> Greetings
> 
>   Pete
> 
> "One person with a belief is a social power equal to ninety-nine who
> have only interests." - John Stuart Mill
> 
> 

Thanks! that solved the problem, but I had to use:

!C -*- mode: f90; coding: iso-8859-15; -*-

instead. Otherwise the f90 compiler complains (the "C" on the 1st line
is not understood as a comment in F90, "!" is.

-- 
---------------------------------------------------------------------------------------------
Gustavo Seabra


_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to