From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Erik Simon Newsgroups: gmane.emacs.help Subject: Re: Unable to Set Tab Width Date: Fri, 21 Mar 2003 09:20:02 +0100 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048234997 16735 80.91.224.249 (21 Mar 2003 08:23:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Mar 2003 08:23:17 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 21 09:23:15 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18wHo2-0004LT-00 for ; Fri, 21 Mar 2003 09:23:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18wHlU-0003ix-01 for gnu-help-gnu-emacs@m.gmane.org; Fri, 21 Mar 2003 03:20:36 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18wHlA-0003KS-00 for help-gnu-emacs@gnu.org; Fri, 21 Mar 2003 03:20:16 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18wHl1-0002mR-00 for help-gnu-emacs@gnu.org; Fri, 21 Mar 2003 03:20:10 -0500 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18wHkz-0002Zr-00 for help-gnu-emacs@gnu.org; Fri, 21 Mar 2003 03:20:05 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18wHkq-0004BG-00 for ; Fri, 21 Mar 2003 09:19:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18wHkq-0004B6-00 for ; Fri, 21 Mar 2003 09:19:56 +0100 Original-Lines: 27 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 Cancel-Lock: sha1:WrJUDBrO6j1IJdQo63VM7PvvqjU= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7780 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7780 Hi, On 21 Mar 2003, matrix2468REMOVETHISTOREPLY@cox.net wrote: >(setq default-tab-width 2) > >I thought the above command would set the tab width to 2, >but it is stuck at 4! See the help for default-tab-width, it's for buffers that don't override it. >It's driving me nuts while editing perl or java. Tabs are controlled in java-mode by c-basic-offset (as in C) Have a look at c-indent-command (C-h f c-indent-command). In perl-mode, it's controlled by perl-indent-level if I remember well. I actually never changed those myself, maybe it messes up with the indent style, dunno... >I thought emacs was configurable... no? It is :-) Good luck -- Erik Simon