From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: change spaces indent in text mode? Date: Sat, 30 Jan 2010 13:39:17 +1100 Organization: Rapt Technologies Message-ID: <87zl3wuxii.fsf@lion.rapttech.com.au> References: <87wrz0ittg.fsf@mithlond.arda> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1264819262 31880 80.91.229.12 (30 Jan 2010 02:41:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Jan 2010 02:41:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 30 03:40:56 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 1Nb3GZ-0004pe-5A for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jan 2010 03:40:55 +0100 Original-Received: from localhost ([127.0.0.1]:51734 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nb3GY-0000QH-UB for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jan 2010 21:40:54 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!news-xfer.nntp.sonic.net!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) Cancel-Lock: sha1:wb4yDO2kdz2sZ9bRTjBWU02VIHY= Original-Lines: 55 Original-NNTP-Posting-Host: 416400c0.news.astraweb.com Original-X-Trace: DXC=B\SUHQ9UP7OWe7Bc]TQV_NL?0kYOcDh@J2AWVo<6C[TBM] 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:71576 Archived-At: 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: >> >>    Here     are    some                     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 | (4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76) | | | This variable is safe as a file local variable if its value | satisfies the predicate `listp'. | | Documentation: | List of tab stop positions used by `tab-to-tab-stop'. | This should be a list of integers, ordered from smallest to largest. | | You can customize this variable. `---- The 'default' emacs version jumps by 8 spaces per tab stop. Tim -- tcross (at) rapttech dot com dot au