emacs - 在emacs中交换ctrl和alt键 [英] emacs - swap the ctrl and alt key within emacs

查看:449
本文介绍了emacs - 在emacs中交换ctrl和alt键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经听到很多emacs的优秀功能,并希望将其用作常规的文本编辑器。

它唯一的障碍是 Ctrl 键的问题位置链接

我发现的所有解决方案都是重新映射的难题按键在os级别,或制作capslock作为 Ctrl



我反对上述解决方案是:
重新映射密钥:将会我的生活在emacs之外,说使用firefox和emacs在一起。

capslock as Ctrl 键:总是切换键盘led为大写锁定是相当烦人的。



所以在emacs中有一种方法可以反转单独使用的 Ctrl Alt 键的作用。

我可以想到的唯一方法是修补emacs代码....但这将像一个bazooka飞行一样。

解决方案

你没有说出你的操作系统。如果您使用的是Windows,请您只能在emacs中进行交换



但是,我建议您检查粘扣键。有了这个,你不需要交换帽子和ctrl,而且你也可以在其他应用程序中获得健康的好处,而不仅仅是在emacs中。


i have heard a lot of excellent features of emacs and would like to use it as my regular text editor.
the only hindrance to it is the problem of Ctrl key position link.
all the solutions i found are the hard way ie remapping keys at os level, or making capslock as Ctrlkey

my objections to the above solutions are: remapping keys: would make my life hard outside of emacs, say using firefox and emacs together.
capslock as Ctrl key: would always toggle the keyboard led for caps lock which is quite annoying.

so is there a way within emacs to invert the role of Ctrl and Alt key which will have effect in emacs alone.
the only way i can think of is to tinker with the emacs code.... but that would be like going after a fly with a bazooka.

解决方案

You didn't say what your OS is. If you are on Windows then you can have them swapped only in emacs.

But I recommend checking out sticky keys instead. With this you don't need to swap caps and ctrl, and you will have the health benefits in other apps too, not just in emacs.

这篇关于emacs - 在emacs中交换ctrl和alt键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆