From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Paul Edwards" Newsgroups: gmane.emacs.help Subject: Re: simple editor required Date: Wed, 18 Jun 2003 09:53:26 GMT Organization: BigPond Internet Services (http://www.bigpond.net.au) Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <8465nduadj.fsf@lucy.is.informatik.uni-duisburg.de> <5lfzmgbrio.fsf@rum.cs.yale.edu> <84el1zcze6.fsf@lucy.is.informatik.uni-duisburg.de> <841xxzto54.fsf@lucy.is.informatik.uni-duisburg.de> <5lu1aqcev2.fsf@rum.cs.yale.edu> <84n0git5vn.fsf@lucy.is.informatik.uni-duisburg.de> <5lr85sbs0w.fsf@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1055930624 3651 80.91.224.249 (18 Jun 2003 10:03:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2003 10:03:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 18 12:03:43 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19SZmh-0000um-00 for ; Wed, 18 Jun 2003 12:03:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19SZfR-0002Ej-RJ for gnu-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2003 05:55:49 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!ken-transit.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Original-NNTP-Posting-Host: 144.132.167.28 Original-X-Complaints-To: abuse@bigpond.net.au Original-X-Trace: news-server.bigpond.net.au 1055930006 144.132.167.28 (Wed, 18 Jun 2003 19:53:26 EST) Original-NNTP-Posting-Date: Wed, 18 Jun 2003 19:53:26 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:114547 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11039 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11039 "Stefan Monnier" wrote in message news:5lr85sbs0w.fsf@rum.cs.yale.edu... > > In text mode, if my file looks like: > > > aaaa > > bbbb > > cccc > > > Hitting enter at beginning of aaaa line creates a newline plus an indent of > > 8 spaces. > > I don't see this with any combination of Emacs-20.7, Emacs-21.3, text-mode, > indented-text-mode, paragraph-indent-text-mode, newline, newline-and-indent. > It's probably a bad interaction with your config. I've used a simpler version of .emacs, and what I got was a blank line, and then on the next line I got a single tab in front of my "aaaa". I confirmed that if either of the last two things in my .emacs are absent, I do not get that behaviour, I simply get a blank line. ; Switch off any crap the installation has (setq inhibit-default-init 't) ; Don't let emacs guess what file types I am editting (setq auto-mode-alist '() interpreter-mode-alist '()) ; Always assume text mode (setq-default default-major-mode 'text-mode) ; Indent whenever you hit enter (global-set-key [?\C-m] 'newline-and-indent) BFN. Paul.