Didier Verna <verna(a)inf.enst.fr> wrote:
Colin Rafferty writes:
Colin> (global-set-key [(return)] 'newline-and-indent)
Oaow ...
But sometimes, you _don't_ want to indent. In C, for instance, you
might want to make a few blank lines before the next line of code. And you
don't want them to be indented because otherwise, Martin is going to send a
mega-patch to correct this ;-)
FWIW, in cc-mode on my system, repeatedly pressing return (which of
course *is* bound to 'newline-and-indent) actually "indents" (as in
"inserts tabs/spaces") only the last of a succession of blank lines.
Making people oblidged to use C-j instead of Return to simply
go to
the next line is too much to ask, I think.
OTOH, it may be said that making people use Ret *plus* Tab simply to
do what 'newline-and-indent does is too much to ask :)
--
Cheers,
-Dima.