【问题标题】:Emacs on Mac - how to enter brackets, pipes, @, etc?Mac 上的 Emacs - 如何输入括号、管道、@ 等?
【发布时间】:2012-10-07 10:53:49
【问题描述】:

我对我的 Mac 上的 Emacs 很陌生,我在输入以下符号时遇到了麻烦:[]|{}@ 等。相反,迷你缓冲区显示 M-5M-6 或向前跳一个字 (M-l) .

我想我的 Emacs 在这里:http://emacsformacosx.com/ 我确实安装了这个入门工具包:http://kieranhealy.org/emacs-starter-kit.html (但我以前遇到过这个问题)

我知道这个答案:Unable to type braces and square braces in emacs 但我还不能让它工作。

【问题讨论】:

标签: macos emacs


【解决方案1】:

我使用以下命令——它将 Emacs 元键放在 Mac CMD 键上,并释放 ALT 键以供正常 Mac 使用:

(if (boundp 'ns-command-modifier)
    (setq ns-command-modifier 'meta))

(if (boundp 'ns-option-modifier)
    (setq ns-option-modifier nil))

【讨论】:

  • 我输入了我的 init.el 并重新启动,但 Alt+7 仍然产生M-7。有什么想法吗?
  • 你确定它们生效了吗(例如,如果你的 init 文件没有被读取,或者在这些行之前它包含一个错误)。尝试使用 C-h v 检查值。
猜你喜欢
  • 1970-01-01
  • 2011-03-23
  • 2011-04-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-09-04
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多