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

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

Re: Indenting according to block


From: Lennart Borgman (gmail)
Subject: Re: Indenting according to block
Date: Fri, 29 Jun 2007 23:08:42 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070604 Thunderbird/2.0.0.4 Mnenhy/0.7.5.666

Lennart Borgman (gmail) wrote:
troelskn wrote:
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?


Hi Troels,

The PHP modes I have seen does not indent all parts correctly. The HTML part is not handled.


Eh, I should have read your question a bit better. I am sorry for answering something you did not search for.

I can assist you, but try

  M-: (info "(ccmode)") RET




reply via email to

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