comp.lang.ada
 help / color / mirror / Atom feed
From: "Bobby D. Bryant" <bdbryant@mail.utexas.edu>
Subject: Need help w/ ada-mode.el under Emacs 21.
Date: Tue, 29 Jul 2003 04:28:20 -0600
Date: 2003-07-29T04:28:20-06:00	[thread overview]
Message-ID: <pan.2003.07.29.10.28.18.354682@mail.utexas.edu> (raw)


After a general system upgrade my Ada-mode for Emacs is behaving
differently, and I'm having trouble restoring the earlier behavior.

The behavior that I want to suppress is that whenever you press return on
an empty line to create more whitespace I get an indentation on the new
line, and I want the cursor to stay at the left margin unless I press the
tab key.  Previously it would guess an indentation if I were in the middle
of a declaration or a statement, but not otherwise, and that is the
behavior that I would like to restore.

I see that I can suppress re-indentation of the *current* line by adding
(setq ada-indent-after-return nil) to my ~/.emacs, but that's not what I
want to change -- I want to change indentation of the line where the
cursor ends up after pressing return.  Nor do I want to disable
indentation altogether; I just want to disable contextless indentation. 
(While working on complicated problems I like to put "lose end" comments at
the left margin so I can find them more easily by skimming, and it's
really annoying to have to move every line back to the margin by hand.)

Any help would be appreciated.

-- 
Bobby Bryant
Austin, Texas




             reply	other threads:[~2003-07-29 10:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-29 10:28 Bobby D. Bryant [this message]
2003-07-29 13:18 ` Need help w/ ada-mode.el under Emacs 21 John McCabe
2003-07-29 13:44   ` Bobby D. Bryant
2003-07-29 13:58     ` John McCabe
2003-07-30  7:44       ` J�r�me Haguet
2003-07-30 10:06         ` John McCabe
2003-07-29 14:20 ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox