Jochen Küpper <[EMAIL PROTECTED]> writes:

> 
> Gustavo Seabra <[EMAIL PROTECTED]> writes:
> 
> > 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. So, I wonder if there's a way to 
tell 
> > emacs to use a specific 'mode' from the command line, overriding the 
default 
> > definition. 
> 
> Can you put Local Variable "cookies" into these files?
> 
> ,----[ (info "(emacs)File Variables") ]
> | A file can specify local variable values for use when you edit the file
> | with Emacs.  Visiting the file checks for local variable
> | specifications; it automatically makes these variables local to the
> | buffer, and sets them to the values specified in the file.
> `----
> 
> Greetings,
> Jochen

Thanks. In fact I'm working on someone else's code, so I try to minimize any 
changes that are not *directly* related to what I'm doing. In this sense, 
Peter's suggestion worked fine, since it is only one line at the top of the 
file.






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

Reply via email to