为什么交换
久负盛名的《Effective emacs》中第一条推荐的就是交换Caps和Ctrl。其中的解释如下:
在Windows和苹果Mac键盘上,那个Ctrl键居然被远远地放在左下角,而Ctrl对于emacs的使用却是 时时刻刻都很重要的,如果你不把 Ctrl放到一个更舒服的位置,你就很难成一个emacs艺术大师了。这位置应该与你的基本手位处于同一行,那么,Caps Lock是最佳选择。在很多unix工作站上,这个位置放的就是Ctrl键,原因同上。
如何交换
要想在w2000或者XP中实现这个互换,需要修改注册表。从开始菜单中选择“运行”,输入regedit。在左边的树状视图中,找到: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout XXXXX不用译了。 点击 KeyboardLayout 项,使之获得焦点。再从“编辑”菜单中选择新建一个二进制值,命名为 "Scancode Map",它的类型应该显示为 REG_BINARY。 然后选择这个新建的"Scancode Map"值项,用“编辑”菜单中选择修改二进制值,在二进制编辑对话框中,输入下列数据: 0000: 00 00 00 00 00 00 00 00 0008: 03 00 00 00 3A 00 1D 00 0010: 1D 00 3A 00 00 00 00 00 选择OK关闭对话框,退出注册表编辑器,注销后重登入,你的caps和ctrl键应该就互换成功了。也可能要重启一次。 在linux的X-Window中,可以使用xmodmap工具。在你的主目录新建一个名字为.xmodmap的文件,如果已经存在则只需修改。向该文件加入下列内容: ! ! 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 保存,再向你的 ~/.bash_profile 文件加入一行: xmodmap ~/.xmodmap 在Mac OS X(Panther或Jaguar)中,你得安装一个修改过的键盘驱动,这说来有些吓人,但是很有效。 这儿有个关于驱动的讨论: http://www.macosxhints.com/article.php?story=20031102032521826 如果你用的不是Mac笔记本,好像有一个XML文件可以编辑来实现,可以参考这儿: http://www.eecs.wsu.edu/%7Eschneidj/mac-os-x-10.3.html#swap 下面的URL有一条关于在其它系统上实现的信息: http://www.manicai.net/comp/swap-caps-ctrl.html
文章还不错吧?分享它吧! 您可以随意地转载本站的文章,但是必须在醒目位置注明来源及本站链接,不可以将本站文章商业化使用,或者修改、转换或者以本作品为基础进行创作。
2012年9月04日 03:01
我直接把caps_lock给干掉了,没有交换。^_^
ps pre标签内的内容右内边距好像不正常阿。 ff15 linux
2024年1月15日 22:33
The writer has outdone himself this time. It is not at all enough; the website is also utmost perfect. I will never forget to visit your site again and again.
2024年2月12日 19:10
If you're looking for a tea maker that's perfect for shop, this one is it! The everett tea maker is made from hard wood with a natural yogurt flavor and it's easy to use. There's also a Infra
2024年2月12日 19:35
I just found this blog and have high hopes for it to continue. Keep up the great work, its hard to find good ones. I have added to my favorites. Thank You.
2024年2月12日 20:13
I really loved reading your blog. It was very well authored and easy to understand. Unlike other blogs I have read which are really not that good.Thanks alot!
2024年2月12日 21:38
I just found this blog and have high hopes for it to continue. Keep up the great work, its hard to find good ones. I have added to my favorites. Thank You.
2024年2月13日 03:10
A cd player is a great addition to any music player. They provide an easy way for you to expand the amount of music that is available to you. And with their small size, they can be easily attached to your wall or counter.
2024年2月13日 03:59
This is very interesting content! I have thoroughly enjoyed reading your points and have come to the conclusion that you are right about many of them. You are great.