Article View: gnu.emacs.help
Article #189075Re: Help with text and fortran modes
From: Nick Dokos
Date: Tue, 14 May 1991 14:17
Date: Tue, 14 May 1991 14:17
28 lines
1660 bytes
1660 bytes
In article <1991May14.021906.22395@cs.cornell.edu> stefan@CS.Cornell.EDU (Kjartan Stefansson) writes:
> 2) on the Apollo, the fortran compiler command that we use most of the
> time is /com/ftn.... the "ftn" compiler is looking for ".ftn"
> source files. Emacs recognizes ".f" fortran source files and sets
> the fortran mode appropriately. How do I add ".ftn" so that emacs
> recognizes these files as fortran source?
add to your .emacs:
(setq auto-mode-alist (add-to-klist "\\.ftn$" 'fortran-mode
auto-mode-alist))
"add-to-klist" is not standard. Use
(setq auto-mode-alist (append '(("\\.ftn$" . fortran-mode))
auto-mode-alist))
For indentation, change the values of fortran-do-indent and fortran-if-indent.
For the manual, do C-h i.
For a printed version, contact FSF (+617 876 3296) or Quantum Books (+617 494 5042)
--
Nick Dokos (nick@osf.org)
Systems Engineering (uunet!osf.org!nick)
Technical Details
Message-ID:
<NICK.91May14101744@alphaville.osf.org>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!spool.mu.edu!think.com!paperboy!nickReferences:
<239@evtprp0b.UUCP> <1991May14.021906.22395@cs.cornell.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,d84577e07ee9764d X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-05-15 00:30:05 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!spool.mu.edu!think.com!paperboy!nick From: nick@osf.org (Nick Dokos) Newsgroups: gnu.emacs.help Subject: Re: Help with text and fortran modes Message-ID: <NICK.91May14101744@alphaville.osf.org> Date: 14 May 91 14:17:44 GMT References: <239@evtprp0b.UUCP> <1991May14.021906.22395@cs.cornell.edu> Sender: news@OSF.ORG Distribution: gnu Organization: Open Software Foundation. Lines: 28 In-reply-to: stefan@CS.Cornell.EDU's message of 14 May 91 02:19:06 GMT