【问题标题】:Setting alt/option key to Meta in Emacs on OSX在 OSX 上的 Emacs 中将 alt/option 键设置为 Meta
【发布时间】:2017-06-18 15:26:57
【问题描述】:

是的,我用谷歌搜索过,提供的答案似乎都不起作用。我最近买了一台新电脑,并把我的.emacs 移了过来,但有些东西无法正常工作。特别是 alt/option 键在 emacs 中未被检测为元。

我在:

Darwin punk.local 15.6.0 Darwin Kernel Version 15.6.0: Mon Jan  9 23:07:29 PST 2017; root:xnu-3248.60.11.2.1~1/RELEASE_X86_64 x86_64

我的.emacs 中有以下内容:

(if (system-is-mac)
  (setq ns-command-modifier 'meta))
(setq mac-option-modifier 'meta)

我正在运行iterm2 build 3.0.13

非常感谢任何帮助,谢谢!

【问题讨论】:

  • 此链接是否有帮助 -- “让 iTerm 以与其他操作系统相同的方式翻译“元密钥””stackoverflow.com/questions/196357/…
  • 那种工作。它至少让我朝着正确的方向前进。我将在下面提交答案。谢谢!

标签: macos emacs meta iterm


【解决方案1】:

这可以从 iterm2 修复。感谢lawlist 为我指明了正确的方向。

选择Iterm2 -> Preferences -> Profiles 调出配置文件视图。

在该窗格中选择Keys,然后选择Left option key acts as,然后选择+Esc

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-07-02
    • 2014-12-09
    • 1970-01-01
    • 1970-01-01
    • 2010-11-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多