I am not able to set substatement-open in .emacs so that I get
if (asdf=12)
{
}
without the offset 2.
Although if I change it with C-c C-o  (curser before the opening brace)
it works correctly.
How do I change my .emacs file so that I don't have to modify it every
run?
Replacing (substatement-open before after) with (substatement-open 0)
didn't work either.

(add-hook 'jde-mode-hook 'my-jde-mode-hook)
(defun my-jde-mode-hook ()
  (imenu-add-to-menubar "Find")
  (c-add-style
    "my-java"
    '("java"
     (c-basic-offset . 2)
     (c-hanging-braces-alist . ((substatement-open before after)))
   ))
....

willi

Reply via email to