Hello everyone.
I'm having trouble finding a way to (properly) align the following lines in CC Mode using the style "java":
// Correct when this is used: (c-set-offset 'arglist-cont-nonempty '++).
private static synchorized horkingLongMethodName(int anArg,
........Object anotherArg, String yetAnotherArg,
........Object andStillAnother) {
}
// Wrong when this is used: (c-set-offset 'arglist-cont-nonempty '++)
var = function1(longExpression1,
........function2(longExpression2,
................longExpression3));
// Correct when (c-set-offset 'arglist-cont-nonempty '++) is NOT used!
var = function1(longExpression1,
................function2(longExpression2,
..........................longExpression3));
My concern is that I won't be able to distinguish the two. After looking at the CC Mode manual, I found that I can customize even further:
(defun c-lineup-arglist-decl (langelem)
...)
(defun my-java-mode-hook ()
...
(c-set-offset 'arglist-cont-nonempty 'c-lineup-arglist-decl))
Writing the c-lineup-arg-list-decl
procedure is the problem.