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, 03 Jun 2003 13:51:57 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: <1K1Da.3886$7E.44637@news-server.bigpond.net.au> References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1054648705 30226 80.91.224.249 (3 Jun 2003 13:58:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2003 13:58:25 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 03 15:58:22 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 19NCIG-0007o0-00 for ; Tue, 03 Jun 2003 15:57:40 +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 19NCGT-0004VQ-9E for gnu-help-gnu-emacs@m.gmane.org; Tue, 03 Jun 2003 09:55:49 -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: 32 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 1054648317 144.132.167.28 (Tue, 03 Jun 2003 23:51:57 EST) Original-NNTP-Posting-Date: Tue, 03 Jun 2003 23:51:57 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:114041 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:10534 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10534 "Kevin Dziulko" wrote in message news:mailman.7200.1054643007.21513.help-gnu-emacs@gnu.org... > You can do something like: > > (global-set-key "\e[4~" 'delete-char) > > to get the delete key to work as you'd like. (\e[4~ would need to be > subsituted by the escape sequence of your delete key). To find your > delete keys escape sequence, go into the *scratch* buffer, hit C-q, then > press your delete key. Thanks. I'll give that a go. > use something like: > (setq auto-mode-alist (cons '("\\.c$" . text-mode) auto-mode-alist)) > > so that visiting *.c files will land you in text-mode. Ok, I'll try that. Can you tell me why these... > > (setq inhibit-default-init 't) > > (setq-default default-major-mode 'text-mode) ... didn't stop this auto-file-association from happening? I basically don't want emacs to do any junk like that, I'm not interested in its assumptions, I'm after basic editting functions, rather than by default being launched into its weird ideas of what C code should look like (which is probably a style used by less than 10% of C programmers). BFN. Paul.