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: simple editor required Date: Tue, 03 Jun 2003 10:46:41 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: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1054638609 14029 80.91.224.249 (3 Jun 2003 11:10:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2003 11:10:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 03 13:10:04 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 19N9g4-0003dq-00 for ; Tue, 03 Jun 2003 13:10:04 +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 19N9c3-0005je-OY for gnu-help-gnu-emacs@m.gmane.org; Tue, 03 Jun 2003 07:05:55 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news.xtra.co.nz!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: 71 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 1054637201 144.132.167.28 (Tue, 03 Jun 2003 20:46:41 EST) Original-NNTP-Posting-Date: Tue, 03 Jun 2003 20:46:41 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:114027 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:10521 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10521 I'm wanting to use emacs as a substitute for vi. I'm after the following features: 1. When I press the "a" key I want an "a" to appear on the screen (that rules out "vi"). 2. When I press the "delete" key I expect the current character to be deleted, not the previous character (that rules out Emacs 20.7.1). 3. When I hit the enter key I expect the next line to begin underneath the last line (that rules out Xemacs 20.4). 4. When I attempt to mark a block of text, I don't expect a find or a goto to lose my marker (that rules out Xemacs 20.4). 5. As per (3), when I have a blank line, I don't want it to insert spaces. I don't mind it inserting spaces so much as I want to be able to delete them with ctrl-k. But when I do that it deletes my blank line. :-( So I have to delete one character at a time instead. Now due to normal beauracacy, it is difficult for me to get a different version of emacs installed, and on some machines I only have 20.4 and other machines only 20.7.1, so I'd prefer both to work. Is there any workaround? I can't seem to stop it getting into C mode when I edit a ".c" file. Basically I don't want any junk loaded, I'm just after a basic editor, ie "text mode". I thought inhibit-default-init would stop it from loading junk, but no such luck. Here is my .emacs: (setq-default tab-width 4) (global-set-key [?\C-h] 'delete-backward-char) (setq make-backup-files nil) (setq inhibit-default-init 't) (global-set-key [insertchar] 'overwritemode) (setq auto-save-default nil) (setq-default indent-tabs-mode nil) ;(setq-default indent-according-to-mode nil) (setq-default default-major-mode 'text-mode) ;(global-set-key "\C-m" 'newline-and-indent) (global-set-key [?\C-m] 'newline-and-indent) (global-set-key "\M-g" 'goto-line) (global-set-key "\M-r" 'replace-string) (global-unset-key [delete]) (global-set-key [delete] 'delete-char) ; potential alternatives (nothing works on 20.7.1) ;(global-unset-key [deletechar]) ;(global-set-key [deletechar] 'delete-char) ;(global-unset-key (kbd "")) ;(global-set-key (kbd "") 'delete-char) Thanks. Paul.