From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glauber Alex Dias Prado Newsgroups: gmane.emacs.help Subject: Re: change spaces indent in text mode? Date: Sat, 30 Jan 2010 19:59:01 -0200 Message-ID: <86fx5nz23e.fsf@gmail.com> References: <87wrz0ittg.fsf@mithlond.arda> <87zl3wuxii.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1264888787 11573 80.91.229.12 (30 Jan 2010 21:59:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Jan 2010 21:59:47 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tim X Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 30 22:59:44 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NbLM0-0003sW-49 for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jan 2010 22:59:44 +0100 Original-Received: from localhost ([127.0.0.1]:43329 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NbLLz-0005Sf-Hv for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jan 2010 16:59:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NbLLc-0005Sa-0g for help-gnu-emacs@gnu.org; Sat, 30 Jan 2010 16:59:20 -0500 Original-Received: from [199.232.76.173] (port=37267 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NbLLb-0005SS-Lw for help-gnu-emacs@gnu.org; Sat, 30 Jan 2010 16:59:19 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NbLLa-0000DD-NH for help-gnu-emacs@gnu.org; Sat, 30 Jan 2010 16:59:19 -0500 Original-Received: from qw-out-1920.google.com ([74.125.92.145]:4339) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NbLLa-0000Ch-Cn for help-gnu-emacs@gnu.org; Sat, 30 Jan 2010 16:59:18 -0500 Original-Received: by qw-out-1920.google.com with SMTP id 14so578874qwa.24 for ; Sat, 30 Jan 2010 13:59:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :face:date:in-reply-to:message-id:user-agent:mime-version :content-type:content-transfer-encoding; bh=37Fxu4Wg2S9i4AjvigxWKHU2DKZ1plYSEy+AJVJlOMs=; b=D0hwF//TGVJ6YKeyOhqNWEOv+LwUjr5+4b/QyYVCnTIInhHtRIBuhDattFsHkI4qJa TCCJgX7jsW24ttVOobiDhvxmXT7E5MheU/SZpXRlvvtB4sm7wbG9qKC+QotVVcPbNUjY WqkBxtfKsn1Dw7g+XH8hs72kkL2DvWZ8/KXrI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; b=eysHDqbTFjrxa5wdAeZX3DkaFatGrZjYySwRK83stWplvC4iHAPe45SgUXf9nUTgvb T1ZloTRyZTmXj5AvRXK75r3uMyTchW4LdVTv8RQAT2fEiRuK/lp7WjHCia2FsuKF2Q7y B37tkmcQyKAvas3wWEKTqI7ice3x33gye2Haw= Original-Received: by 10.224.63.133 with SMTP id b5mr1112454qai.350.1264888756167; Sat, 30 Jan 2010 13:59:16 -0800 (PST) Original-Received: from localhost (201-74-170-179-sa.cpe.vivax.com.br [201.74.170.179]) by mx.google.com with ESMTPS id 23sm2494447qyk.3.2010.01.30.13.59.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 30 Jan 2010 13:59:14 -0800 (PST) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEX9/Py9sZ6FcE5gCec3 AAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAwAAAAMADO7oxXAAABGklEQVQoz02RPW6E MBCFx6uQwlWKJQUHSJFTUKUmUowiVylWSOtT7BEoshRUKQCt3ykz4x+wKfCnGea9eRDxUX8UjzIX qpYMDlsPE6EC0ANjBL5NwBqg7j36Fb4LAIPZAGHGG8PG4AXeeQBmfsYdvA2gBbBaLGcWtQEc/FPL tU8hx9IC1AhZTEFK8U3gFjd4BQYgtKmf2Nmm3ZQIB6+aF3VsPUAzipEIA3gMNsiLDbWk5jSgeVD3 bDMsvOEVse1FDP2ecijUoyNMKcoTJ+AyEH+r55yrmLoXQKaE+lFAU1b0tYSyTfsCqq8S0u87h9EJ hpB6Gq0vopOMKtlyF3XdUSH9TZW90d5XuzaLuOl+GNDYDtMqJpXOBzv7B2mugjLxx2cLAAAAQnRF WHRjb21tZW50AENSRUFUT1I6IGdkLWpwZWcgdjEuMCAodXNpbmcgSUpHIEpQRUcgdjYyKSwgcXVh bGl0eSA9IDEwMAowBf9PAAAAJXRFWHRjcmVhdGUtZGF0ZQAyMDA5LTA1LTI2VDA3OjM2OjUwLTAz OjAw8P7KDgAAABF0RVh0anBlZzpjb2xvcnNwYWNlADIsdVWfAAAAIHRFWHRqcGVnOnNhbXBsaW5n LWZhY3RvcgAyeDIsMXgxLDF4MUn6prQAAAAldEVYdG1vZGlmeS1kYXRlADIwMDktMDUtMjZUMDc6 MzY6NTAtMDM6MDCvT7w6AAAAAElFTkSuQmCC In-Reply-To: <87zl3wuxii.fsf@lion.rapttech.com.au> (Tim X.'s message of "Sat, 30 Jan 2010 13:39:17 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71585 Archived-At: Tim X writes: > Brendan Miller writes: > >> Great, thanks! >> >> The only problem I have, is that m-i seems to indent by 8 spaces. I >> tried putting >> >> (setq tab-width 4) in my .emacs, but that doesn't seem to change >> anything... is m-i controlled by a different variable? >> >> On Fri, Jan 29, 2010 at 11:39 AM, Teemu Likonen wrote: >>> * 2010-01-29 11:28 (-0800), Brendan Miller wrote: >>> >>>> When I hit tab in text mode, it indents by 5 spaces. How do I change >>>> that? Setting tab-width doesn't seem to do the right thing. >>> >>> TAB key in text-mode indents to the columns of previous line's words. If >>> you want to go to next tab stop, as defined in tab-stop-list variable, >>> use M-i. For example, first write a line like this: >>> >>> =C2=A0 =C2=A0Here =C2=A0 =C2=A0 are =C2=A0 =C2=A0some =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 words. >>> >>> Then press TAB key a couple of times on the next line. Then go to the >>> beginning of line and press M-i a couple of times. You should see the >>> difference. >>> >> >> > > You missed the critical phrase in Teemu's response i.e. > > "you want to go to next tab stop, as defined in tab-stop-list variable," > > ,----[ C-h v tab-stop-list RET ] > | tab-stop-list is a variable defined in `indent.el'. > | Its value is=20 > | (4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76) > |=20 > |=20 > | This variable is safe as a file local variable if its value > | satisfies the predicate `listp'. > |=20 > | Documentation: > | List of tab stop positions used by `tab-to-tab-stop'. > | This should be a list of integers, ordered from smallest to largest. > |=20 > | You can customize this variable. > `---- Sorry not related to the original question but what do you use to have a box like that above when writing? > The 'default' emacs version jumps by 8 spaces per tab stop. > > Tim