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?