From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Anderson Newsgroups: gmane.emacs.help Subject: Re: TAB Date: Mon, 17 Nov 2003 13:16:02 -0500 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1069092961.916.220.camel@hades.syr-24-59-76-83.twcny.rr.com> References: <3FB905DC.7010706@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1069093462 5857 80.91.224.253 (17 Nov 2003 18:24:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2003 18:24:22 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 17 19:24:19 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ALo2t-0004Rs-00 for ; Mon, 17 Nov 2003 19:24:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ALoxd-00082u-DC for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2003 14:22:57 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ALovb-0005qv-RT for help-gnu-emacs@gnu.org; Mon, 17 Nov 2003 14:20:51 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ALoup-0004vE-Q8 for help-gnu-emacs@gnu.org; Mon, 17 Nov 2003 14:20:34 -0500 Original-Received: from [64.246.36.112] (helo=torre.pghoster.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1ALosV-0003Qy-Al for help-gnu-emacs@gnu.org; Mon, 17 Nov 2003 14:17:39 -0500 Original-Received: from 192.0.0.253 (syr-24-59-76-83.twcny.rr.com [24.59.76.83]) (authenticated (0 bits)) by torre.pghoster.com (8.11.6/8.11.6) with ESMTP id hAHIG7v00369; Mon, 17 Nov 2003 12:16:07 -0600 Original-To: Kevin Rodgers In-Reply-To: <3FB905DC.7010706@yahoo.com> X-Mailer: Ximian Evolution 1.4.4-8mdk X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14322 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14322 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)? -Dan