From owner-freebsd-questions Wed Mar 18 08:58:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA09601 for freebsd-questions-outgoing; Wed, 18 Mar 1998 08:58:02 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from top.monad.net (root@top.monad.net [204.97.16.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA09525 for ; Wed, 18 Mar 1998 08:57:49 -0800 (PST) (envelope-from vdk@chaosphere.com) Received: from logrus.chaosphere.com (logrus.chaosphere.com [206.231.108.252]) by top.monad.net (8.8.8/What) with SMTP id LAA00632; Wed, 18 Mar 1998 11:57:38 -0500 (EST) Date: Tue, 17 Mar 1998 23:55:49 -0500 (EST) From: Obi Wan Oblivion Reply-To: Obi Wan Oblivion To: David Lee cc: freebsd-questions@FreeBSD.ORG Subject: Re: Emacs in FreeBSD Environment In-Reply-To: <1141744A9866D111B6C90000F8BCBC240CA586@bcarua63.ca.nortel.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 16 Mar 1998, David Lee wrote: > I am running FreeBSD 2.2.5 on a Pentium 75 with 16 Mb of RAM. My question > is about the Emacs editor. When I run Emacs, my key does not work as > my key. Instead, I am forced to use my key. I prefer using > the . When I use Emacs under Linux on the same machine, I can use the > without problems. I'm thinking you are referring to running Emacs sans XWin. The only reason I kept Linux on my system as long as I did (about two weeks) is because Emacs worked flawlessly in text mode right away. It isn't so easy in FreeBSD, but I think this is what you're looking for: http://www.freebsd.org/cgi/getmsg.cgi?fetch=1004671+1015107+/usr/local/www/db/text/1997/freebsd-questions/19970629.freebsd-questions It's an old posting (circa Jul 97) complete with a keymap. A good rule of thumb when it comes to posting to "questions" is to always check the archives first. You would be absolutely amazed at what you can find. Anyway, extract the keymap from the rest of the message, store it somewhere sane (like /usr/share/syscons/keymaps), name it something sane (like emacs-safe.us.kbd), and do: # kbdcontrol -l /usr/share/syscons/keymaps/emacs-safe.us.kbd Then play around with Emacs, see if you like it. If you do, then edit your /etc/rc.conf and change the line: keymap="NO" # keymap in /usr/share/syscons/keymaps/* (or NO). to: keymap="emacs-safe.us.kbd" # keymap with support for ALT-bound META Note: This keymap will also set your backspace key to send delete instead of '^H'. If you want an explanation as to why all of this is necessary, you can read this posting, also from the archives: http://www.freebsd.org/cgi/getmsg.cgi?fetch=152538+156990+/usr/local/www/db/text/1997/freebsd-questions/19970706.freebsd-questions Hope this helps! A note to the FreeBSD team: It seems that this question, or slight variations thereof, has been asked frequently enough to deserve a place in the FAQ. I would be willing to write such an entry if that would speed its inclusion. Also, would there be any benefit gained or lost by including the keymap referenced above (or a variation) in the next release? Cheers! -Jeff Transformers - They're more than meets the eye! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message