you could (customize-variable 'c-basic-offset), if that is any help. or
maybe adding your hook function to c-mode-common-hook helps. but maybe
that's not what you want...

--
knut

> -----Original Message-----
> From: Markus Torpvret [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, January 22, 2001 10:16 AM
> To:   'Mark Pollack'; [EMAIL PROTECTED]
> Subject:      RE: two questions... offsets and jdebug
> 
> > 1) In my .emacs I have.
> > 
> > (defun my-jde-mode-hook ()
> >   (setq c-basic-offset 2))
> > (add-hook 'jde-mode-hook 'my-jde-mode-hook)
> > 
> > This works fine, I get 2 spaces working on .java files.  
> > However, when a
> > create a new .java file using the generator, 
> > jde-gen-class-buffer (I am
> > using the template that comes with jde) this somehow gets set
> > back to 4 spaces.  Any idea how to make my 2 space setting 
> > stick?  This did
> > not happen when I was using jde-2.2.1.
> 
> I get this too. I found out that saving and re-visiting the file
> solves the problem, but I haven't taken it further than that...
> 
> /Markus

Reply via email to