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: Mon, 01 Feb 2010 17:32:34 -0800 Message-ID: <4B6780B2.7070700@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 1265074381 16267 80.91.229.12 (2 Feb 2010 01:33:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Feb 2010 01:33:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 02 02:32:58 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 1Nc7dS-0006HH-El for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Feb 2010 02:32:58 +0100 Original-Received: from localhost ([127.0.0.1]:46253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nc7dR-0003d2-T3 for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Feb 2010 20:32:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nc7d2-0003cK-Cz for help-gnu-emacs@gnu.org; Mon, 01 Feb 2010 20:32:32 -0500 Original-Received: from [199.232.76.173] (port=41554 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nc7d1-0003bt-Vx for help-gnu-emacs@gnu.org; Mon, 01 Feb 2010 20:32:32 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nc7d1-00029g-1R for help-gnu-emacs@gnu.org; Mon, 01 Feb 2010 20:32:31 -0500 Original-Received: from mail-pz0-f185.google.com ([209.85.222.185]:34813) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nc7d0-000293-Df for help-gnu-emacs@gnu.org; Mon, 01 Feb 2010 20:32:30 -0500 Original-Received: by pzk15 with SMTP id 15so4855729pzk.25 for ; Mon, 01 Feb 2010 17:32:29 -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:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=NxAEROMVzsrVTt7WpapipKwu1hx+/MUQKGtb0VEHDCc=; b=G3r91Z+Bek5/uO9s+u4gQ/5Za2SHLSOiAMeooaxgG4NIldBIsT8Q7a2pcU+J8VMCtJ 1o3B705TCpytUDtu1nJRCyJ+3y7t5DPuV1byyad2Q/fvKtfcee4uyzmQg+A1XF/5GCgb yHSHLeHp4Fd5uY9G4BWDY81H03kV6lttnxqtw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=xkEobhzqOo67BcJJh3EXAcc03fTTX2B2e+f6o80MUTB2nuuSQPpfx1fZCSMc9sbQXk GvPGrD+nyRFFVttKGeRb5qm+3b4EDF9Wf4/OtKs9rv7kDklpD2Ej9txxcgq2lsjeRADs wFEGXo/rkwk8rGdYFHlZSZVoKe79BXRWJ+VLU= Original-Received: by 10.141.91.13 with SMTP id t13mr3660108rvl.253.1265074348879; Mon, 01 Feb 2010 17:32:28 -0800 (PST) Original-Received: from ?142.58.122.14? (p8460-6.phys.sfu.ca [142.58.122.14]) by mx.google.com with ESMTPS id 22sm5034277pzk.6.2010.02.01.17.32.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 01 Feb 2010 17:32:27 -0800 (PST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b2pre Thunderbird/3.0.1 In-Reply-To: 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:71611 Archived-At: On Monday 01 February 2010 09:04 AM, Stefan Monnier wrote: >>> 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? > > You can make the TAB key do whatever you want, by rebinding it to some > other command. The command that does the above is called > `indent-relative'. Thanks a lot Stefan. I bound it to `S-' works like a charm. :) > Stefan -- Suvayu Open source is the future. It sets us free.