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

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

Re: 'smart' indentation


From: Johan Bockgård
Subject: Re: 'smart' indentation
Date: Mon, 10 Mar 2003 01:26:53 +0100
User-agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2

Michael Powe <michael@trollope.org> writes:

> hello,
>
> i would like to have 'smart' indentation, à la some editors i use like
> textpad.  if i indent a line, then when i press enter at the end of
> the line, i want point to go to the indented position on the following
> line.  i can't find the way to make this work.  it looks like
> 'adaptive-fill-mode' should do this, but it does not.  having to go
> back and 'indent-region' is annoying.

There is a function `newline-and-indent'. You want to bind this to
RET, I think (and you would probably find it is on C-j already).

/Johan



reply via email to

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