[Top][All Lists]

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


From: Kevin Rodgers
Subject: Re: TAB
Date: Mon, 17 Nov 2003 10:31:08 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

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)))

Kevin Rodgers

reply via email to

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