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

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

Re: 'smart' indentation


From: Benjamin Rutt
Subject: Re: 'smart' indentation
Date: Sun, 09 Mar 2003 19:26:54 -0500
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (sparc-sun-solaris2.8)

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.

I think you want

(global-set-key (kbd "RET") 'newline-and-indent)
-- 
Benjamin


reply via email to

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