[OS X Emacs] Avoid automatic indent in Fortran mode
Dany Page
page at astro.unam.mx
Mon Jan 26 17:46:38 EST 2015
Thanx Nathaniel, seems to work !
Dany
> On Jan 26, 2015, at 4:36 PM, Nathaniel Cunningham <nathaniel.cunningham at gmail.com> wrote:
>
> Dany,
>
> I believe you want to turn off `electric-indent-mode'. Try
> C-h v electric-indent-mode
> if you need details on how to achieve that.
>
> I determined this by loading a buffer in fortran-mode (or similar programming mode), and querying the behavior of the <ENTER> key, using:
> C-h k <ENTER>
> where C-h k calls "describe-key"
>
> I hope that helps.
>
> -- Nathaniel
>
>
> On Mon, Jan 26, 2015 at 4:17 PM, Dany Page <page at astro.unam.mx <mailto:page at astro.unam.mx>> wrote:
> How can I completely eliminate automatic indentation in Fortran mode ?
> What I want is that when I press <ENTER> it opens a new line and put
> the cursor in the first column, AND DO NOTHING ELSE !
>
> (I press <ENTER> and it put 6 blanks in the new line, so very often I have to delete
> these blanks. I press <ENTER> several times to open several blank lines and
> the automatic indent makes that I break the lines below at the 6th column instead
> of creating new blank lines. I press <ENTER> and the IF, ESLE IF, END IF,
> or DO, ... in the previous line move around, i.e., get indented in some funny way …
> so I have to go back to the previous line and readjust the indentation, ...
> It all makes me extremely nervous to see Emacs modifying my code :)
>
> Thanx for the help
>
> Dany
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu <mailto:MacOSX-Emacs at email.esm.psu.edu>
> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs <https://email.esm.psu.edu/mailman/listinfo/macosx-emacs>
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx <http://dir.gmane.org/gmane.emacs.macintosh.osx>
>
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20150126/318e2e05/attachment.html>
More information about the MacOSX-Emacs
mailing list