简体   繁体   English

使cmd成为在iTerm中运行的emacs中的元键

[英]Make cmd the meta key in emacs running in iTerm

I run Mac OSX 10.9 (Mavricks) and use EmacsMac installed via macports package emacs-app-mac (emacs version 24.3.1). 我运行Mac OSX 10.9(Mavricks)并使用macports软件包emacs-app-mac(emacs版本24.3.1)安装EmacsMac。 The GUI uses cmd as the meta key, which is what I want. GUI使用cmd作为元键,这就是我想要的。 But I also run the same binary (emacs points to Emacs -nw) in my iTerm2 terminal (Build 1.0.0.20131116), where meta-key is alt instead of cmd. 但我也在我的iTerm2终端(Build 1.0.0.20131116)中运行相同的二进制文件(emacs指向Emacs -nw),其中元键是alt而不是cmd。

In iTerm preferences i've tried the different settings for "left option key acts as ..." but no joy there. 在iTerm首选项中,我尝试了“左选项键充当...”的不同设置,但没有喜悦。 Is there a way I can get emacs in iTerm to recognise cmd as my meta key? 有没有办法让iTerm中的emacs能够识别cmd作为我的元键?

Preferences -> Profiles -> Keys has what you want. 首选项 - >配置文件 - >键具有您想要的功能。

Mine is set to +Esc. 我的设置为+ Esc。 I know, meta looks like what you want but it is not it. 我知道,meta看起来像你想要的但不是它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM