[Top][All Lists]

[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: Gecko/20070604 Thunderbird/ Mnenhy/

Lennart Borgman (gmail) wrote:
troelskn wrote:

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-

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]