[Top][All Lists]

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

java indentation

From: chris.danx
Subject: java indentation
Date: Wed, 13 Nov 2002 20:46:23 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20021016


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
     (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?

for personal replies change spamoff to chris

reply via email to

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