On Tue, 13 Jun 2000, Chuck Irvine wrote:

> It's a simple enough question, but I've poked around now for half an
> hour trying to find the answer. I give up. JDE's default indentation
> offset is 4 spaces. I'd like to reduce it to 2. I tried setting, via
> customeize-variable, c-basic-offset to 2, but that only works for until
> I load the next java file, when the value get reset to 4. Thanks for
> your help.
> 
> Chuck
> 
> 


i put this in my .emacs file (after the jde load stuff, not
sure whether that matters...) and it worked for me. there 
is more info in the mail archives.

cheers
m.


(defun my-jde-mode-hook ()
  (c-add-style
   "my-java"
   '("java"
     (c-basic-offset . 2)))
  (c-set-style "my-java"))

(add-hook 'jde-mode-hook 'my-jde-mode-hook)

Reply via email to