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: Mon, 30 Jun 2003 09:58:28 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: <8RTLa.266$jT3.3830@news-server.bigpond.net.au> References: <844r2opsuy.fsf@lucy.is.informatik.uni-duisburg.de> <84r85ry9ft.fsf@lucy.is.informatik.uni-duisburg.de> <84vfv2ulf7.fsf@lucy.is.informatik.uni-duisburg.de> <84wufgke19.fsf@lucy.is.informatik.uni-duisburg.de> <5ly8zw7hah.fsf@rum.cs.yale.edu> <7TAJa.738$eG1.8604@news-server.bigpond.net.au> <5ln0g87dki.fsf@rum.cs.yale.edu> <848yrsgd4s.fsf@lucy.is.informatik.uni-duisburg.de> <84fzlzsdj6.fsf@lucy.is.informatik.uni-duisburg.de> <%d4Ka.174$9g2.1046@news-server.bigpond.net.au> <843chyfzpp.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1056967403 20827 80.91.224.249 (30 Jun 2003 10:03:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 30 Jun 2003 10:03:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 30 12:03:21 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 19WvU9-0005JH-00 for ; Mon, 30 Jun 2003 12:02:09 +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 19WvSy-0006NJ-CL for gnu-help-gnu-emacs@m.gmane.org; Mon, 30 Jun 2003 06:00:56 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!news.tele.dk!news.tele.dk!small.news.tele.dk!peer1.news.newnet.co.uk!peer1.news.newnet.co.uk!news.moat.net!ken-transit.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 82 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 1056967108 144.132.167.28 (Mon, 30 Jun 2003 19:58:28 EST) Original-NNTP-Posting-Date: Mon, 30 Jun 2003 19:58:28 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:114845 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:11337 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11337 "Paul Edwards" wrote in message news:tscKa.709$9g2.6501@news-server.bigpond.net.au... > I guess while I'm on a roll I should see if I can get xemacs to > behave like emacs, so that next time I'm on a site with xemacs > only, I can get it to behave as logically as emacs (now) does! :-) I've now got both emacs and xemacs behaving properly. Thanks everyone for your help. The final solution is below, for anyone who wants a simple editor... 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 (defun newline-and-maybe-indent () (interactive) (if (bolp) (newline) (newline-and-indent))) (global-set-key [?\C-m] 'newline-and-maybe-indent) (setq indent-line-function 'indent-relative-maybe) ; Don't add newlines when cursoring down (setq-default next-line-add-newlines nil) ; micro-emacs lookalikes (global-set-key "\M-g" 'goto-line) (global-set-key "\M-r" 'replace-string) (global-set-key "\M- " 'set-mark-command) ; For xemacs at least, don't destroy marker on goto (setq-default zmacs-regions nil) ; Make delete delete (define-key key-translation-map "\C-?" "\C-d") ; potential alternatives to make delete delete ;(define-key text-mode-map (kbd "DEL") 'delete-char) ;(global-unset-key [delete]) ;(global-set-key (kbd "") #'delete-char) ;(define-key emacs-lisp-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") ;(global-unset-key [deletechar]) ;(global-set-key [deletechar] 'delete-char) ;(global-unset-key (kbd "")) ;(global-set-key (kbd "") 'delete-char) ; If some things are meant to be emacs/xemacs-specific, put them here (if (featurep 'xemacs) (progn ;; do Xemacs stuff ) ;; do Emacs stuff )