Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!elroy.jpl.nasa.gov!swrinde!mips!pacbell.com!lll-winken!jac@moonshine.llnl.gov From: jac@gandalf.llnl.gov (James A. Crotinger) Newsgroups: comp.unix.amiga Subject: Re: Decent Unix Editors!! (one man's opinion, anyway) Message-ID: Date: 28 Apr 91 22:13:18 GMT References: <846.280ca9ab@vger.nsu.edu> <1991Apr25.083732.6664@zorch.SF-Bay.ORG> Sender: usenet@lll-winken.LLNL.GOV Lines: 40 Nntp-Posting-Host: sundance.llnl.gov frank@morpheus.UUCP (Frank McPherson) writes: > One solution (admittedly, not a great one) to the problem of Emacs using > Delete instead of CTRL-H is to just dump the help functions. As you > say, they're next to impossible to use, anyway. > So, here's what you do to use CTRL-H (more popularly known as Backspace) for > the purpose it was intended: add this line to the file .emacs in your > home directory and it'll map the delete-backward-char function to the > backspace key on your Amiga. Incidentally, the old assignment of > delete-backward-char to the delete key is still around, so you can use > either one. > (define-key global-map "\C-h" 'delete-backward-char) You don't have to dump help to do this. Just reassign the help key to something else. For example, the following lines remap the help key to be the one labeled "HELP" on a Sparcstation keyboard (which sends the sequence [-1z): (global-unset-key "\M-[") (global-set-key "\e[-1z" help-map) (global-set-key "\e[-1z\e[-1z" 'help-for-help) (global-set-key "\C-h" 'backward-delete-char-untabify) ;(global-set-key "\177" 'delete-char) To find out what to use to map the Amiga's help key to "help-map", get into emacs and type q followed by the help key. If the help key is getting sent, it'll show up as text (when using a regular Amiga and VLT, it comes out as Ol (big O little l), so you'd replace \e[-1z with \eOl). The last line maps the delete key to do the same thing it does on the Amiga (delete the character "under" the cursor). Unfortunately the Sun has the positions of the delete and backspace keys mixed up, which causes me great frustration, so I commented it out. -- ----------------------------------------------------------------------------- James A. Crotinger Lawrence Livermore Natl Lab // The above views jac@moonshine.llnl.gov P.O. Box 808; L-630 \\ // are mine and are not (415) 422-0259 Livermore CA 94550 \\/ necessarily those of LLNL