Thanks David.

I changed the setq to add-hook, but now I get:

Error in init file: Wrong type argument: symbolp, (jde-setup-syntax-coloring
semantic-default-java-setup)

Any ideas?  What I was trying to achieve was the indentation of braces from
this style:

method()
        {
                stuff ...
        }

to:

method()
{
        stuff ...
}

Thanks,
Jeff

-----Original Message-----
From: David Ponce [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 13, 2001 3:02 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Problem getting the methods directory to update


Hello Jeff,

>Well,  I think I found it, although I don't quite understand what's
>going on.  The following code:
>
> (defun my-java-hook ()
>  "My local settings for Java"
>  (c-set-style "java")
>  (c-set-offset 'substatement-open 0)
>  )
>(setq java-mode-hook 'my-java-hook)
>
>appeared to disable Senator-minor-mode, which resulted in the java
>source not being parsed (I'm assuming), which in turn resulted in the
>*ECB Methods* window not being populated.
>
>Can anyone explain this?

Yes, I think you must use (add-hook 'java-mode-hook 'my-java-hook) instead
of setq ;-)

Sincerely,
David



__________________________________________________
Voila vous propose une boite aux lettres gratuite sur Voila Mail:
http://mail.voila.fr


Reply via email to