At 04:05 PM 3/12/01 +0530, G Annamalai wrote:
>Hello All,
>
>What is the equivalent of c-mode-common-hook for jde?
>
>I have this in my .emacs file
>
>(defun anna-c-mode-common-hook ()
>  (c-set-style "gnu")
>  (setq c-tab-always-indent t)
>  (c-comment-only-line-offset . 0)
>  )
>(add-hook 'c-mode-common-hook 'anna-c-mode-common-hook)
>
>But when I open the .java files my style is
>still set to "linux" and not "gnu" (as I had set in my 
>function above).
>
>Doesn't JDE use this hook?

This hook is invoked by jde-mode  as you can easily verify by inserting a
(message "hi, this is anna's hook function." )  form in your hook function.
So I don't think the problem is with the JDE. Anyway, there is a
jde-mode-hook variable that you can use to set JDE-specific hooks. Try it
and see if it makes a difference.

- Paul

Reply via email to