comp.lang.ada
 help / color / mirror / Atom feed
* Need help w/ ada-mode.el under Emacs 21.
@ 2003-07-29 10:28 Bobby D. Bryant
  2003-07-29 13:18 ` John McCabe
  2003-07-29 14:20 ` Stephen Leake
  0 siblings, 2 replies; 7+ messages in thread
From: Bobby D. Bryant @ 2003-07-29 10:28 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-07-30 10:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-29 10:28 Need help w/ ada-mode.el under Emacs 21 Bobby D. Bryant
2003-07-29 13:18 ` 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

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