【问题标题】:Make cmd the meta key in emacs running in iTerm使 cmd 成为在 iTerm 中运行的 emacs 中的元键
【发布时间】:2013-12-10 16:46:51
【问题描述】:

我运行 Mac OSX 10.9 (Mavricks) 并使用通过 macports 包 emacs-app-mac(emacs 版本 24.3.1)安装的 EmacsMac。 GUI 使用 cmd 作为元键,这正是我想要的。但我也在 iTerm2 终端(Build 1.0.0.20131116)中运行相同的二进制文件(emacs 指向 Emacs -nw),其中元键是 alt 而不是 cmd。

在 iTerm 首选项中,我尝试了“左选项键充当...”的不同设置,但没有任何乐趣。有没有办法让 iTerm 中的 emacs 将 cmd 识别为我的元键?

【问题讨论】:

  • 我记得在 Apple 的 Terminal.app 中有这个选项,但和你一样,我在 iTerm2 中看不到它。作为一个黑客,你可能会成功地用KeyRemap4Macbook重新映射它。

标签: emacs


【解决方案1】:

Preferences -> Profiles -> Keys 有你想要的。

我的设置为 +Esc。我知道,meta 看起来像你想要的,但事实并非如此。

【讨论】:

  • 谢谢,这需要一个额外的步骤:在 Preferences --> Keys set "Left command key = Left Option"(这样右 cmd 键仍然可用于翻转标签等)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-02-01
  • 2013-06-13
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多