Article View: comp.emacs
Article #8002Re: questions on fortran mode
From: Stephen Gildea
Date: Wed, 30 Nov 1988 21:12
Date: Wed, 30 Nov 1988 21:12
30 lines
1708 bytes
1708 bytes
Date: 28 Nov 88 11:25:37 GMT
From: axion!ukc!warwick!expya!admin%cs.exeter.ac.uk@uunet.uu.net
(Khalid Sattar)
Subject: questions on fortran mode
To: info-gnu-emacs@prep.ai.mit.edu
Firstly, I would like to know how to set the character to be treated
as a comment line marker in fortran. i.e is it possible to customize EMACS
so that it recognises say 'c...' as a comment 'character' and set the TAB
key to correctly indent the line.
Yes, it is possible. See the variables comment-line-start and
comment-line-start-skip. (Not to be confused with comment-start and
comment-start-skip for same-line comments.) In your case, all you
need to do is to set comment-line-start to "c..." to make TAB and
ESC LFD work correctly.
Secondly, is it possible to prevent long lines of fortran code being
indented out of the 72 column window when indenting an old unindented
program using 'indent-region'. It would be useful if any code that would
otherwise go beyond 72 columns could be automatically continued on a
continuation line i.e with '$' prefix on a new line ......without splitting
fortran commands.
There is no automatic line splitting, but try typing C-c C-r
(fortran-column-ruler) or C-c C-w (fortran-window-create) for some
visual aids.
< Stephen
Technical Details
Message-ID:
<8811302020.AA07071@EDDIE.MIT.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!mit-eddie!ALEXANDER.BBN.COM!gildeaShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!mit-eddie!ALEXANDER.BBN.COM!gildea From: gildea@ALEXANDER.BBN.COM (Stephen Gildea) Newsgroups: comp.emacs Subject: Re: questions on fortran mode Message-ID: <8811302020.AA07071@EDDIE.MIT.EDU> Date: 30 Nov 88 21:12:21 GMT Sender: daemon@eddie.MIT.EDU Lines: 30