From: kai.grossjohann@uni-duisburg.de (Kai Großjohann)
Subject: Re: 'smart' indentation
Date: Mon, 10 Mar 2003 15:01:28 +0100 [thread overview]
Message-ID: <84ptozjp6v.fsf@lucy.is.informatik.uni-duisburg.de> (raw)
In-Reply-To: 87llzonnqs.fsf@cecilia.trollope.org
Michael Powe <michael@trollope.org> writes:
> i would like to have 'smart' indentation, à la some editors i use like
> textpad.
Compared with Emacs standards, that indentation is rather dumb...
> 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.
On the new line, invoke M-x indent-relative RET. I like to use that
in text mode a lot, so I do (define-key text-mode-map (kbd "RET")
'indent-relative) in my ~/.emacs file.
Usually, Emacs does syntax-driven indentation. This means that it
groks the syntax of your programming language and then uses the right
indentation level.
--
A preposition is not a good thing to end a sentence with.
next prev parent reply other threads:[~2003-03-10 14:01 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
2003-03-10 0:26 ` Benjamin Rutt
2003-03-10 14:01 ` Kai Großjohann [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=84ptozjp6v.fsf@lucy.is.informatik.uni-duisburg.de \
--to=kai.grossjohann@uni-duisburg.de \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.