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: Tue, 17 Jun 2003 22:58:24 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 1055890954 25866 80.91.224.249 (17 Jun 2003 23:02:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Jun 2003 23:02:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 18 01:02:32 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 19SPSd-0006fw-00 for ; Wed, 18 Jun 2003 01:01:55 +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 19SPSF-0004Sj-FF for gnu-help-gnu-emacs@m.gmane.org; Tue, 17 Jun 2003 19:01:31 -0400 Original-Newsgroups: gnu.emacs.help Original-Lines: 84 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 1055890704 144.132.167.28 (Wed, 18 Jun 2003 08:58:24 EST) Original-NNTP-Posting-Date: Wed, 18 Jun 2003 08:58:24 EST Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.syd.connect.com.au!news.bri.connect.com.au!news.brisbane.pipenetworks.com!duster.adelaide.on.net!vicpull2.telstra.net!ken-transit.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:114537 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:11028 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11028 "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. Note that there are no blank lines above aaa. My goal is to insert one. Also, I have seen this problem before, probably with 18.x. > 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. > > > (my tab is only 4 spaces), > > This is ambiguous since it doesn't say whether it's the displayed size of > a TAB character, or the number of spaces-equivalent inserted when you hit > M-i or maybe TAB (in which case it also depends on what TAB is bound to, > which depends on the major mode via the variable indent-line-function). I don't generate tabs myself, so it is display size. > > but I didn't actually expect any indentation at all here. > > Rightly so. Here is my .emacs. I will now try out the various commands! BFN. Paul. ; 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) ; Make backspace backspace (global-set-key [?\C-h] 'delete-backward-char) ; Set default tab width (setq-default tab-width 4) ; Don't create junk backup files (setq make-backup-files nil) (setq auto-save-default nil) ; make insert toggle overwrite mode (global-set-key [insertchar] 'overwritemode) ; Don't use tabs to indent (setq-default indent-tabs-mode nil) ; Indent whenever you hit enter (global-set-key [?\C-m] 'newline-and-indent) ; micro-emacs lookalikes (global-set-key "\M-g" 'goto-line) (global-set-key "\M-r" 'replace-string) ;(global-unset-key [delete]) ;(global-set-key (kbd "") #'delete-char) ;(define-key emacs-lisp-mode-map (kbd "DEL") 'delete-char) (define-key text-mode-map (kbd "DEL") 'delete-char) ;(normal-erase-is-backspace-mode 0) ;(define-key function-key-map "\C-?" "\C-d") ;(global-set-key [delete] 'delete-char) ;(define-key function-key-map [delete] "\C-d") ; potential alternatives ;(global-unset-key [deletechar]) ;(global-set-key [deletechar] 'delete-char) ;(global-unset-key (kbd "")) ;(global-set-key (kbd "") 'delete-char)