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

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

Indenting according to block


From: troelskn
Subject: Indenting according to block
Date: Fri, 29 Jun 2007 20:34:19 -0000
User-agent: G2/1.0

Hi

Sorry if this has been asked a gazillion times before (Which I suspect
it has), but I don't really know what to search for.

I'm using Emacs primarily for writing PHP. The PHP-mode appears to
extend from C-mode. The auto-indent is not formatting code the way I
would like it to, so I would obviously like to change that.
The basic rules, by which I'm used to indent code is, that for each
block-scope, I increase indentation by one tab (Well actually by 2
spaces, since I don't use tabs). However, the way Emacs does it now,
is to indent the line by a number of spaces, which corresponds to the
end-column of the previous line. I think that's called indent-
relative?

Does the indentation-rules, I described have a name? And is there
support build into Emacs for it?

Thanks

--
troels



reply via email to

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