From: bojohan+news@dd.chalmers.se (Johan Bockgård)
Subject: Re: 'smart' indentation
Date: Mon, 10 Mar 2003 01:26:53 +0100 [thread overview]
Message-ID: <yoijy93om5gy.fsf@helm.dd.chalmers.se> (raw)
In-Reply-To: 87llzonnqs.fsf@cecilia.trollope.org
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
next prev parent reply other threads:[~2003-03-10 0:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-09 23:06 'smart' indentation Michael Powe
2003-03-10 0:26 ` Johan Bockgård [this message]
2003-03-10 0:26 ` Benjamin Rutt
2003-03-10 14:01 ` Kai Großjohann
2003-03-10 17:03 ` Oliver Scholz
2003-03-10 18:22 ` Kai Großjohann
2003-03-10 20:02 ` Ole Laursen
2003-03-10 20:24 ` Oliver Scholz
2003-03-10 20:33 ` Stefan Monnier
2003-03-11 11:50 ` Kai Großjohann
2003-03-11 15:11 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yoijy93om5gy.fsf@helm.dd.chalmers.se \
--to=bojohan+news@dd.chalmers.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).