Mac OS X Leopard 上的 Emacs 键绑定 [英] Emacs on Mac OS X Leopard key bindings

查看:24
本文介绍了Mac OS X Leopard 上的 Emacs 键绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Mac 用户,我决定学习 Emacs.我已经阅读,以减少手部疲劳并提高 CTRLCAPS 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

  1. 进入系统偏好设置
  2. 输入键盘 &鼠标首选项面板
  3. 键盘标签中,点击修饰键...
  4. 交换 Caps LockControl 的操作.
  1. Go into System Preferences
  2. Enter the Keyboard & Mouse preference pane
  3. In the Keyboard tab, click Modifier Keys...
  4. Swap the actions for Caps Lock and Control.

使用 ALT/OPTION 作为 META

  1. 在菜单栏中,点击终端
  2. 点击首选项...
  3. 设置标签下,转到键盘标签
  4. 选中标记为使用选项作为元键
  5. 的框
  1. In the menu bar, click Terminal
  2. Click Preferences...
  3. Under the Settings tab, go to the Keyboard tab
  4. Check the box labeled Use option as meta key

就是这样!您应该顺利成为 Emacs 大师!

这篇关于Mac OS X Leopard 上的 Emacs 键绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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