How to I configure emacs in java mode so that it doesn't automatically align method parameters

Viewed 4179

In emacs, when I type:

public void foo(String one,
    String two) {

It tabifies like this:

public void foo(String one,
                String two) {

I'd rather it didn't, and just aligned parameters like other line continuations. How can I configure it not to do this?

2 Answers

I like to specify the mode style in each source file's first line. Try:

// -*- mode: java; c-file-style: "stroustrup" -*-

This will give you rational tabification. You might also try "k&r".

Related