help-gnu-emacs
[Top][All Lists]
Advanced

[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: Thu, 30 Jun 2005 15:38:59 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Jochen Küpper <jochen@...> writes:

> 
> Gustavo Seabra <gustavo.seabra@...> 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.








reply via email to

[Prev in Thread] Current Thread [Next in Thread]