Use xmodmap command in X. Refer man page of xmodmap.
For emacs users, it is hard to use recent keyboads because Control key is not next to 'A'. However this simple command helps me lots.
Here is how to use it.
- Create the text file. The file name is arbitary. Mine is '.xmodmaprc'. Like this:
! This file is used with xmodmap ! usage: % xmodmap ~/.xmodmaprc ! ! Below script is a cut&past from `man xmodmap`. ! It works at least on my HP machine very well. :) ! created by Tetsuya Kajita (2000/8/3) ! ! cf. ! http://madhaus.utcs.utoronto.ca/cns/ftp/pub/faqs/sun/sun-faq.general ! ! Swap Caps_Lock and Control_L ! remove Lock = Caps_Lock remove Control = Control_L keysym Control_L = Caps_Lock keysym Caps_Lock = Control_L add Lock = Caps_Lock add Control = Control_L- e.g. Modify your .dtprofile script to invoke X-window, if you need.
This page is link-free.
Any comments are welcome.
Tetsuya Kajita
Last modified: Thu Nov 2 11:34:11 2000