Mac OS X Leopard 上的 Emacs 键绑定 [英] Emacs on Mac OS X Leopard key bindings
问题描述
我是 Mac 用户,我决定学习 Emacs.我已经阅读,以减少手部疲劳并提高 CTRL的准确性kbd> 和 CAPS LOCK 键应该交换.我如何在 Leopard 中执行此操作?
I'm a Mac user and I've decided to learn Emacs. I've read that to reduce hand strain and improve accuracy the CTRL and CAPS LOCK keys should be swapped. How do I do this in Leopard?
此外,在终端中,我必须使用 ESC 键来调用元.有什么办法可以让 alt/option 键来代替调用 meta 吗?
Also, in Terminal I have to use the ESC key to invoke meta. Is there any way to get the alt/option key to invoke meta instead?
更新:虽然控制键现在更容易按下,但元键的使用频率也很高,因此它在我的 MacBook 和 Apple 键盘上的位置也值得关注.事实上,我发现控制键实际上更容易点击,所以我重新映射了我的控制键以充当元键.有人有更好/更标准的解决方案吗?
update: While the control key is much easier to hit now, the meta key is also used often enough that its position on my MacBook and Apple Keyboard also deserves attention. In fact, I find that the control key is actually easier to hit, so I've remapped my control key to act as a meta key. Does anyone have a better/more standard solution?
推荐答案
交换 CTRL 和 CAPS LOCK
- 进入系统偏好设置
- 输入键盘 &鼠标首选项面板
- 在键盘标签中,点击修饰键...
- 交换 Caps Lock 和 Control 的操作.
- Go into System Preferences
- Enter the Keyboard & Mouse preference pane
- In the Keyboard tab, click Modifier Keys...
- Swap the actions for Caps Lock and Control.
使用 ALT/OPTION 作为 META
- 在菜单栏中,点击终端
- 点击首选项...
- 在设置标签下,转到键盘标签
- 选中标记为使用选项作为元键 的框
- In the menu bar, click Terminal
- Click Preferences...
- Under the Settings tab, go to the Keyboard tab
- Check the box labeled Use option as meta key
就是这样!您应该顺利成为 Emacs 大师!
这篇关于Mac OS X Leopard 上的 Emacs 键绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!