From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gustavo Seabra Newsgroups: gmane.emacs.help Subject: select 'mode' from command line? Date: Wed, 29 Jun 2005 19:25:06 +0000 (UTC) Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1120074693 15078 80.91.229.2 (29 Jun 2005 19:51:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2005 19:51:33 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 29 21:51:31 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DniaN-0000mA-5h for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jun 2005 21:51:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DniiT-0003le-Ph for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jun 2005 15:59:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DnifO-00022G-IZ for help-gnu-emacs@gnu.org; Wed, 29 Jun 2005 15:56:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DnifM-00021c-Pb for help-gnu-emacs@gnu.org; Wed, 29 Jun 2005 15:56:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dnif8-0001qC-PY for help-gnu-emacs@gnu.org; Wed, 29 Jun 2005 15:55:59 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DniSy-00050P-Is for help-gnu-emacs@gnu.org; Wed, 29 Jun 2005 15:43:24 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1DniGK-0005aY-6T for help-gnu-emacs@gnu.org; Wed, 29 Jun 2005 21:30:20 +0200 Original-Received: from green6.qtp.ufl.edu ([128.227.192.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Jun 2005 21:30:20 +0200 Original-Received: from gustavo.seabra by green6.qtp.ufl.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Jun 2005 21:30:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 15 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 128.227.192.198 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27719 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27719 Hi, 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. Something like: $emacs -f90 my_f90_file.f & to force emacs to already open the file with the f90 mode. Thanks, Gustavo Seabra.