gpt4 book ai didi

macos - 在 OSX 上的 Emacs 中将 alt/option 键设置为 Meta

转载 作者:行者123 更新时间:2023-12-03 09:11:32 24 4
gpt4 key购买 nike

是的,我用谷歌搜索了一下,所提供的答案似乎都不起作用。我最近买了一台新计算机,并将我的 .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

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

最佳答案

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

选择Iterm2 -> Preferences -> Profiles 打开配置文件 View 。

在该 Pane 中选择,然后左选项键充当并选择+Esc

关于macos - 在 OSX 上的 Emacs 中将 alt/option 键设置为 Meta,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41987296/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com