sketineni wrote:
Seems like setq-default tab-width is not
working with java files. I want to bind the
tab to 4 spaces for indentation purposes and
it does not seem to work. I was wondering
if I could get some help with setting this
up in my .emacs file.
Indentation is controlled by c-basic-offset. Try e.g.
(defun my-c-mode-common-hook ()
(setq c-basic-offset 4))
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
If you only want it to apply to specific modes, chang
c-mode-common-hook to c-mode-hook, c++-mode-hook or java-mode-hook as
appropriate.
--
Glynn Clements <glynn(a)sensei.co.uk>