<div dir="ltr">Dany,<div><br></div><div>I believe you want to turn off `electric-indent-mode'.  Try</div><div>C-h v electric-indent-mode</div><div>if you need details on how to achieve that.</div><div><br></div><div>I determined this by loading a buffer in fortran-mode (or similar programming mode), and querying the behavior of the <ENTER> key, using:</div><div>C-h k <ENTER></div><div>where C-h k calls "describe-key"</div><div><br></div><div>I hope that helps.</div><div><br></div><div>-- Nathaniel</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 26, 2015 at 4:17 PM, Dany Page <span dir="ltr"><<a href="mailto:page@astro.unam.mx" target="_blank">page@astro.unam.mx</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How can I completely eliminate automatic indentation in Fortran mode ?<br>
What I want is that when I press <ENTER> it opens a new line and put<br>
the cursor in the first column, AND DO NOTHING ELSE !<br>
<br>
(I press <ENTER> and it put 6 blanks in the new line, so very often I have to delete<br>
these blanks. I press <ENTER> several times to open several blank lines and<br>
the automatic indent makes that I break the lines below at the 6th column instead<br>
of creating new blank lines. I press <ENTER> and the IF, ESLE IF, END IF,<br>
or DO, ... in the previous line move around, i.e., get indented in some funny way …<br>
so I have to go back to the previous line and readjust the indentation, ...<br>
It all makes me extremely nervous to see Emacs modifying my code :)<br>
<br>
Thanx for the help<br>
<br>
Dany<br>
<br>
_____________________________________________________________<br>
MacOSX-Emacs mailing list<br>
<a href="mailto:MacOSX-Emacs@email.esm.psu.edu">MacOSX-Emacs@email.esm.psu.edu</a><br>
<a href="https://email.esm.psu.edu/mailman/listinfo/macosx-emacs" target="_blank">https://email.esm.psu.edu/mailman/listinfo/macosx-emacs</a><br>
List Archives: <a href="http://dir.gmane.org/gmane.emacs.macintosh.osx" target="_blank">http://dir.gmane.org/gmane.emacs.macintosh.osx</a><br>
</blockquote></div><br></div>