From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Brendan Miller Newsgroups: gmane.emacs.help Subject: Re: change spaces indent in text mode? Date: Fri, 29 Jan 2010 12:50:01 -0800 Message-ID: References: <87wrz0ittg.fsf@mithlond.arda> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1264798287 31063 80.91.229.12 (29 Jan 2010 20:51:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jan 2010 20:51:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Teemu Likonen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 29 21:51:24 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 1NaxoK-0005YT-5m for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jan 2010 21:51:24 +0100 Original-Received: from localhost ([127.0.0.1]:45754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NaxoJ-0007uA-Lr for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jan 2010 15:51:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Naxn6-0007VC-Qr for help-gnu-emacs@gnu.org; Fri, 29 Jan 2010 15:50:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Naxn1-0007RN-9w for help-gnu-emacs@gnu.org; Fri, 29 Jan 2010 15:50:07 -0500 Original-Received: from [199.232.76.173] (port=56296 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Naxn1-0007RE-1v for help-gnu-emacs@gnu.org; Fri, 29 Jan 2010 15:50:03 -0500 Original-Received: from mail-pz0-f194.google.com ([209.85.222.194]:57988) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Naxn0-0001iz-K9 for help-gnu-emacs@gnu.org; Fri, 29 Jan 2010 15:50:02 -0500 Original-Received: by pzk32 with SMTP id 32so1954185pzk.27 for ; Fri, 29 Jan 2010 12:50:01 -0800 (PST) Original-Received: by 10.143.27.20 with SMTP id e20mr878608wfj.256.1264798201243; Fri, 29 Jan 2010 12:50:01 -0800 (PST) In-Reply-To: <87wrz0ittg.fsf@mithlond.arda> 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:71566 Archived-At: 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: > > =A0 =A0Here =A0 =A0 are =A0 =A0some =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =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. >