unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Gustavo Seabra <gustavo.seabra@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: select 'mode' from command line?
Date: Wed, 29 Jun 2005 18:24:59 -0400	[thread overview]
Message-ID: <f79359b6050629152426a1979c@mail.gmail.com> (raw)
In-Reply-To: <7db78fe19f8ca2a7f1668ac6c7ba5654@Web.DE>

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

  reply	other threads:[~2005-06-29 22:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-29 19:25 select 'mode' from command line? Gustavo Seabra
2005-06-29 21:51 ` Peter Dyballa
2005-06-29 22:24   ` Gustavo Seabra [this message]
2005-06-30 14:04     ` Peter Dyballa
2005-06-30 15:05       ` select 'mode' from command line? [OT] Emilio Lopes
     [not found]     ` <mailman.1729.1120140988.2857.help-gnu-emacs@gnu.org>
2005-06-30 14:45       ` select 'mode' from command line? Miles Bader
     [not found]   ` <mailman.1641.1120084018.2857.help-gnu-emacs@gnu.org>
2005-06-29 22:46     ` Miles Bader
     [not found] ` <loom.20050629T211959-864-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
2005-06-30  9:39   ` Jochen Küpper
2005-06-30 15:16     ` Peter Dyballa
2005-06-30 15:38     ` Gustavo Seabra
     [not found] <mailman.1623.1120074977.2857.help-gnu-emacs@gnu.org>
2005-07-02  3:23 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f79359b6050629152426a1979c@mail.gmail.com \
    --to=gustavo.seabra@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).