From owner-freebsd-questions Wed Oct 2 11:01:14 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA24836 for questions-outgoing; Wed, 2 Oct 1996 11:01:14 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA24831 for ; Wed, 2 Oct 1996 11:01:11 -0700 (PDT) Received: from cabri.obs-besancon.fr (cabri.obs-besancon.fr [193.52.184.3]) by who.cdrom.com (8.7.5/8.6.11) with SMTP id LAA26183 for ; Wed, 2 Oct 1996 11:01:04 -0700 (PDT) Received: by cabri.obs-besancon.fr (5.57/Ultrix3.0-C) id AA17704; Wed, 2 Oct 96 20:05:56 +0100 Date: Wed, 2 Oct 96 20:05:56 +0100 Message-Id: <9610021905.AA17704@cabri.obs-besancon.fr> From: Jean-Marc Zucconi To: handy@sag.space.lockheed.com Cc: freebsd-questions@freebsd.org In-Reply-To: (handy@sag.space.lockheed.com) Subject: Re: xmodmap question X-Mailer: Emacs Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >>>>> Brian N Handy writes: > Heya folks, > I probably should post this to the xfree list, but it's probably a dumb > question and I'd like to get an answer, so I'm asking here... > Emacs has an edt mode which allows the user to use the keypad in the old > standard "keypad-editing" mode ala' VT100. One thing that would be really > nice for this would be to be able to trade the position of the num lock > and F12 keys. > I've tried this using xmodmap. I've boiled my swap down to: > keycode 77 = F12 > keycode 96 = Num_Lock > ...and sure enough, if I pump on the F12 key, the num lock light goes on > and off. Similarly if I push the num lock key I appear to get something > that appears F12-ish. > However num lock no longer works! Once I apply this, it doesn't matter if > the num lock key is on or off -- my keypad acts like arrow keys and not a > number pad. I find this strange. The keypad is not in numeric mode when X starts :-(. You need to hit the NumLock key once to change to numeric mode before using xmodmap. I use 'xmodmap -e "keycode 77 = KP_F1"'. You then can put '(tpu-edt)' in your .emacs file :-) Jean-Marc _____________________________________________________________________________ Jean-Marc Zucconi Observatoire de Besancon F 25010 Besancon cedex PGP Key: finger jmz@cabri.obs-besancon.fr =============================================================================