From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: hemant Newsgroups: gmane.emacs.help Subject: Need a simple text mode Date: Wed, 6 Dec 2006 12:42:58 +0530 Message-ID: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165389207 26758 80.91.229.10 (6 Dec 2006 07:13:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Dec 2006 07:13:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 06 08:13:27 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Grqy3-0006vM-9X for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Dec 2006 08:13:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Grqy2-0003EV-On for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Dec 2006 02:13:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Grqxq-0003Df-Hg for help-gnu-emacs@gnu.org; Wed, 06 Dec 2006 02:13:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Grqxp-0003D2-Bg for help-gnu-emacs@gnu.org; Wed, 06 Dec 2006 02:13:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Grqxp-0003Cz-84 for help-gnu-emacs@gnu.org; Wed, 06 Dec 2006 02:13:09 -0500 Original-Received: from [66.249.82.225] (helo=wx-out-0506.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Grqxp-0004GZ-5A for help-gnu-emacs@gnu.org; Wed, 06 Dec 2006 02:13:09 -0500 Original-Received: by wx-out-0506.google.com with SMTP id s17so133986wxc for ; Tue, 05 Dec 2006 23:13:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Qk4O7NS5C1vimwlRl9rQnONHN5pdxotWigV9TRyCfn35pndJfAEMveCugMDA7PpuSLRnlIJZh6sLwt1fcaInaDYZIcGDoufUsF28N83IRYAHZIqPt1Tb5HlggthmDFill75CzVr7TYvSmZnC6LnBYvg10dIJO3kM+HjIo3caOVY= Original-Received: by 10.90.93.6 with SMTP id q6mr415738agb.1165389178601; Tue, 05 Dec 2006 23:12:58 -0800 (PST) Original-Received: by 10.90.100.15 with HTTP; Tue, 5 Dec 2006 23:12:58 -0800 (PST) Original-To: help-gnu-emacs@gnu.org Content-Disposition: inline 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:39279 Archived-At: Hi, I wanted a simple text mode, in which all the newlines should be started at the previous indentation level and If i want to change the indentation level from any given line I would press key, which would insert 2 spaces from the current indentation level and indent the line. Many would claim, this is already the behaviour, but its not so. If I press TAB sometimes I get indentation width of 2 or 4 or 8 spaces. Even though I have set tab-stop variable to: 2 4 6 8 10 .... So for setting up uniform indentation of 2 spaces in text mode, I did: (define-key text-mode-map [tab] (lambda () (interactive) (insert " "))) I guess, you would agree this is not the solution. Any help? -- There was only one Road; that it was like a great river: its springs were at every doorstep, and every path was its tributary.