From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: changing default indent for C++ Date: Mon, 10 Feb 2003 07:41:57 +0100 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84d6m08wne.fsf@lucy.is.informatik.uni-duisburg.de> References: <mailman.1704.1044835041.21513.help-gnu-emacs@gnu.org> <Pine.SOL.4.44.0302092337140.22855-100000@asteroids.gpcc.itd.umich.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044864146 18467 80.91.224.249 (10 Feb 2003 08:02:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2003 08:02:26 +0000 (UTC) Return-path: <help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org> Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18i8tU-0004nZ-00 for <gnu-help-gnu-emacs@m.gmane.org>; Mon, 10 Feb 2003 09:02:25 +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 18i8jB-0008D6-08 for gnu-help-gnu-emacs@m.gmane.org; Mon, 10 Feb 2003 02:51:45 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!lucy.is.informatik.uni-duisburg.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: lucy.is.informatik.uni-duisburg.de (134.91.35.216) Original-X-Trace: fu-berlin.de 1044863408 43109775 134.91.35.216 (16 [73968]) User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 Cancel-Lock: sha1:3JRpYIJg43Dn7IdHjgOKZJ+bBQw= Original-Xref: shelby.stanford.edu gnu.emacs.help:110016 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org> List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help> List-Post: <mailto:help-gnu-emacs@gnu.org> List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe> List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs> List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe> Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6521 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6521 Jonathon Isaac Swiderski <jonswid@umich.edu> writes: > On Sun, 9 Feb 2003, exits funnel wrote: > >> The default indentation is four spaces. I'd desparately like to change >> it to two. > > Funny, i thought it was 8, which is why I have a command to change it to 4. > But I digress. > > I have it set from M-x customize, so I'm not entirely sure how to set it > directly in your .emacs; you can, however, do the following: > > M-x customize-variable RET tab-width RET The variable tab-width does not change the behavior of the TAB key, it just changes the way the tab characters look. It goes like this: user hits TAB. Major mode determines number of columns to indent, based on syntactic indentation. Variable indent-tabs-mode determines whether tab characters are used at all. If so, variable tab-width determines how many tabs are necessary to reach the specified column. -- A turnip curses Elvis