Hi,

here is my code which works well for me.
With this code I set indentation to 2 spaces.
TAB is set to 4 spaces length but I don't use 
TAB character for indentation because each
editor displays TABs differently.

I hope this helps you.

(defun my-jde-mode-hook ()
  (custom-set-variables
   '(c-basic-offset 2)
   '(tab-width 4 indent-tabs-mode nil)
   )
)
(add-hook 'jde-mode-hook 'my-jde-mode-hook)


> I want to have my standard indentation (in JDE mode) of Java code to
> be TAB, with the default indentation level of 2.
> 
> I try with:
> 
> (defun my-jde-mode-hook ()
>   (setq c-basic-indent 1) 
>   (setq tab-width 2)
> )
> (add-hook 'jde-mode-hook 'my-jde-mode-hook)
> 
> BUT it's NOT working !! WHY ??

regards
Artur Hefczyc
-- 
Artur Hefczyc
http://wttools.sf.net/


Reply via email to