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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fortran line width & comment


From: Glenn Morris
Subject: Re: fortran line width & comment
Date: Thu, 07 Jun 2007 12:26:15 -0700
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

tunti wrote:

> I edit fortran files with emacs. commented lines are coloured and
> everything else works nice, but one thing makes me crazy:
>
> when line reaches width greater than 72 characters, the rest of the
> line is considered as comment. this messes up the colouring of the
> rest of the lines in the file.
>
> is there any way to me to make emacs NOT colour the rest of the line
> as a comment ?

(setq fortran-font-lock-syntactic-keywords
      '(("^[cd\\*]" 0 (11))))

Or copy the definition from fortran.el and change "71" in the second
element to whatever value you want. It should be easier to customize
this, sorry.

Or use f90-mode rather than fortran-mode if you are actually writing
free-form code.


reply via email to

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