[Top][All Lists]

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

Re: java indentation

From: Benjamin Lewis
Subject: Re: java indentation
Date: Wed, 13 Nov 2002 13:49:33 -0800
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu)

On Wed, 13 Nov 2002, chris danx wrote:

> Hi,
> How can you change the indentation style for Java(/c++) to bsd style (via
> .emacs)?  For C, this worked...
> (add-hook 'c-mode-common-hook
> (function
> (lambda () (c-set-style "bsd") (setq c-basic-offset 4))))
> but I can't figure out how to get this to work for cc-mode (java uses cc
> mode right?).  Someone thought that should work for Java, but it
> won't. Does anyone know how to do this?

Try adding it to java-mode-hook instead; I do something like this and it
works for me.

Benjamin Lewis

        Amoeba/rabbit cross; it can multiply and divide at the same time.

reply via email to

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