From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: change spaces indent in text mode? Date: Sat, 30 Jan 2010 18:05:35 -0800 Message-ID: <4B64E56F.6080801@gmail.com> References: <87wrz0ittg.fsf@mithlond.arda> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1264903570 13061 80.91.229.12 (31 Jan 2010 02:06:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 Jan 2010 02:06:10 +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 Sun Jan 31 03:06:07 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 1NbPCQ-00083o-3a for geh-help-gnu-emacs@m.gmane.org; Sun, 31 Jan 2010 03:06:06 +0100 Original-Received: from localhost ([127.0.0.1]:34808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NbPCP-0001pv-G3 for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jan 2010 21:06:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NbPC1-0001pm-6D for help-gnu-emacs@gnu.org; Sat, 30 Jan 2010 21:05:41 -0500 Original-Received: from [199.232.76.173] (port=43872 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NbPC0-0001pV-Rk for help-gnu-emacs@gnu.org; Sat, 30 Jan 2010 21:05:40 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NbPC0-0000jD-1k for help-gnu-emacs@gnu.org; Sat, 30 Jan 2010 21:05:40 -0500 Original-Received: from mail-px0-f192.google.com ([209.85.216.192]:37764) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NbPBz-0000iz-OZ for help-gnu-emacs@gnu.org; Sat, 30 Jan 2010 21:05:39 -0500 Original-Received: by pxi30 with SMTP id 30so2685378pxi.14 for ; Sat, 30 Jan 2010 18:05:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=N4scUBXeHKzWyt44i7C+pqjQingO/okXdc9MAUASJEk=; b=NPJCcYymIHodmtRM+5A5TXURbWsOkYT8LiNFEuatDMaxcCv4gvibqhKYgaUYyJ5yjC YmqHX3xecebbp5J8osivQFiAaU96jcekXofuKQ7fZqkLkvFXIyNjrOR8D7SKKISTwfKJ DJAr76AHKoybkPUpYfbJb2PBQf2BlEbqRGdU4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=G+9tG2l+CakpbWGj5f/sIJxRpefeSBYRDulIyf0/mgFhTdN4NjHD6T/s1xPQZmrTJa BSOArCARlQ6uJXNbzkzIZ6qHL3Jry1hnW76RTq7RonQ9YYQHD/ixueY9uVrQthCj+6xL myMY7MIGRm7krXNeXqS0iRtuhBUP/dFzc8sRU= Original-Received: by 10.142.4.12 with SMTP id 12mr1890467wfd.138.1264903537717; Sat, 30 Jan 2010 18:05:37 -0800 (PST) Original-Received: from bhishma.kuru (d216-232-0-68.bchsia.telus.net [216.232.0.68]) by mx.google.com with ESMTPS id 23sm3088739pzk.0.2010.01.30.18.05.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 30 Jan 2010 18:05:36 -0800 (PST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc11 Lightning/1.0b2pre Thunderbird/3.0.1 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:71588 Archived-At: Hi, On Friday 29 January 2010 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. Maybe this is a little off-topic, but is their anyway to have that behaviour of the TAB key with source code, say C++ or Python? I would like to align various similar consecutive lines to make them easy to read. Thanks for any suggestions. -- Suvayu Open source is the future. It sets us free.