[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Dan Anderson
Subject: Re: TAB
Date: Mon, 17 Nov 2003 13:16:02 -0500

On Mon, 2003-11-17 at 12:31, Kevin Rodgers wrote:
> David Rasmussen wrote:
> > When I edit java-files, most of the times emacs inserts spaces when I 
> > press TAB to indent something. But sometimes I've found it inserts a TAB 
> > character instead. Why?
> C-h v indent-tabs-mode
> > How can I turn it off? I never want TAB 
> > characters when editing Java or C++ source code files.
> (setq-default indent-tabs-mode nil)   ; for all modes, or
> (add-hook 'java-mode-hook             ; for just java mode
>         (lambda () (setq indent-tabs-mode nil)))

That tells him how to turn of tabs.  Is there any way to change tabs to
spaces?  i.e. when tabbing insert 4 spaces instead of a tab (if tabs
default to 4 spaces long)?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]