Date: Thu, 17 Aug 2000 00:15:46 -0700 From: R Joseph Wright <rjoseph@mammalia.org> To: freebsd-questions <freebsd-questions@FreeBSD.org> Subject: Re: editors question #2 Message-ID: <20000817001546.A248@mammalia.org> In-Reply-To: <20000816200136.C254@parish>; from marko@freebsd.org on Wed, Aug 16, 2000 at 08:01:36PM %2B0100 References: <Pine.BSF.4.21.0001251536280.11748-100000@dogma.freebsd-uk.eu.org> <20000126095411.B43103@freebie.lemis.com> <20000815142645.A37927@dogma.freebsd-uk.eu.org> <20000816200136.C254@parish>
next in thread | previous in thread | raw e-mail | index | archive | help
And Mark Ovens spoke: > On Tue, Aug 15, 2000 at 02:26:45PM +0100, j mckitrick wrote: > > On Wed, Jan 26, 2000 at 09:54:11AM +1030, Greg Lehey wrote: > > | The difference with Emacs is that you don't just use the shift key, > > | you also use the control and meta keys. This may take a little > > | getting used to (especially if you're using the standard broken > > | keyboard layout that replaces control with CapsLock), but if you have > > > > Where are ctrl and caps-lock *supposed* to be? > > > > Where do you want them to be? :) The traditional Unix locations are > the opposite to a std PC keyboard, i.e. Ctrl next to 'A' and CapsLock > below the LeftShift key. I recently switched my escape and caps lock keys so I could be more productive in vi. The console keymap is different from the X keymap, so I had to do it in two parts: 1) For the console, I copied the file /usr/share/syscons/keymaps/us.emacs.kbd to /usr/share/syscons/keymaps/us.joseph.kbd and just switched the two keys around (how to do that is pretty self explanatory if you venture a look at the file). You might wonder why I used the "emacs" keymap. Well, it doesn't conflict with vi and makes using emacs easier for the rare times that I go there :). The final step was to put in /etc/rc.conf the line keymap=us.joseph.kbd 2) For X, it involves xmodmap. I created a file .xmodmaprc in my home directory with the following lines: clear lock keycode 66 = Escape keycode 9 = Caps_Lock add Lock = Caps_Lock Read the man page for xmodmap to see how to view the current keymap and how to change it. It's a bit less straightforward than the console keymap procedure. Finally, I put the following line in .xinitrc: xmodmap $HOME/.xmodmaprc & I found it important to put the full path to .xmodmaprc in the file, because if you don't and you start X from a directory other than $HOME, xmodmap won't find it. I don't know if I exactly answered the question, but that's how I changed my keymaps :). Joseph To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000817001546.A248>