From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jorgen Grahn Newsgroups: gmane.emacs.help Subject: Re: change spaces indent in text mode? Date: 6 Feb 2010 08:21:45 GMT Message-ID: References: <87wrz0ittg.fsf@mithlond.arda> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265521973 14284 80.91.229.12 (7 Feb 2010 05:52:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2010 05:52:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 07 06:52:45 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 1Ne04a-0003Ga-Ua for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Feb 2010 06:52:45 +0100 Original-Received: from localhost ([127.0.0.1]:41807 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ne04a-0006y5-6Z for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Feb 2010 00:52:44 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-X-Trace: individual.net 6hnFz7S0mMJBMP0v8MBlvg6d8Vti22a1qUdKFYniEZEvIIZQbo Cancel-Lock: sha1:Ry9OLmFnPKDURQyhpcAPMW85RW0= User-Agent: slrn/pre0.9.9-111 (Linux) Original-Xref: news.stanford.edu gnu.emacs.help:176644 X-Mailman-Approved-At: Sun, 07 Feb 2010 00:49:06 -0500 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:71721 Archived-At: On Sun, 2010-01-31, Suvayu Ali wrote: > 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. Do you have any examples where the default Emacs indentation for C++ and Python isn't readable enough? I'm asking because "align various similar consecutive lines" is one of the things those indentation modes do already. As a source code reader (and maintainer) I appreciate when the indentation I see follows one of the built-in styles (and indent-widths) so I can edit it without having to manually tweak my indentation to keep in style. /Jorgen -- // Jorgen Grahn O o .