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

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

Re: Java mode indention


From: Kai Großjohann
Subject: Re: Java mode indention
Date: Thu, 31 Jul 2003 19:06:13 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

J Richardson <jrivers77@yahoo.com> writes:

> I'd like it to use the base offset of the beginning of the statement
> instead.

I've done this for the case where the open paren is the last thing on
the line.  This way, I get the following:

f(a,
  b);
f(
    a,
    b);

I did it my running (c-set-offset 'arglist-intro '+) from
java-mode-hook:

(defun my-java-indent ()
  (c-set-offset ...))
(add-hook 'java-mode-hook 'my-java-indent)
-- 
~/.signature


reply via email to

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