|
From: | Knut Forkalsrud |
Subject: | Re: Possible emacs bug in c-mode |
Date: | Wed, 13 Jun 2001 01:15:46 GMT |
User-agent: | Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.91 |
"the Smith Family" <smiths@snatts-barn.freeserve.co.uk> writes: > if (true) { > doSomething(); // ok > } > if (true) > { // argh! > doSomething(); > } I would use this in my .emacs : (require 'cc-styles) (add-to-list 'c-style-alist '("kf-java" "java" (c-basic-offset . 4) (c-offsets-alist (substatement-open . 0)))) (add-hook 'java-mode--hook (function (lambda () (c-set-style "kf-java")))) -Knut -- Hard work often pays off after time. But laziness always pays off now.
[Prev in Thread] | Current Thread | [Next in Thread] |