[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: select 'mode' from command line?
From: |
Gustavo Seabra |
Subject: |
Re: select 'mode' from command line? |
Date: |
Wed, 29 Jun 2005 18:24:59 -0400 |
On 6/29/05, Peter Dyballa <Peter_Dyballa@web.de> 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
Re: select 'mode' from command line?, Jochen Küpper, 2005/06/30