Emacs & PHP indenting question
Posted
by Danny
on Stack Overflow
See other posts from Stack Overflow
or by Danny
Published on 2010-06-18T11:12:20Z
Indexed on
2010/06/18
11:13 UTC
Read the original article
Hit count: 325
Hi all,
I'm a bit new to using emacs for webdevelopment. I am using php-mode and i am happy with it. There is only one issue i have which causes me a lot of problems because of our company's coding style.
When i have a function, e.g.:
$instance = new Model('foo', 'bar');
And I want to indent it like this:
$instance = new Model(
'foo',
'bar'
);
Emacs does the following when i insert a newline before the first argument and indents it like this:
$instance = new Model(
'foo',
'bar'
);
Can anyone point me in a direction on how i can configure/change this?
Thanks in advance
© Stack Overflow or respective owner