简体   繁体   English

Meta-x在Emacs中不起作用

[英]Meta-x doesn't work in Emacs

Problem: How to make Meta-x work in emacs? 问题:如何在emacs中使Meta-x工作?

Hi I am a newcomer to linux using Ubuntu 10.04LTS and emacs23.1.1. 嗨,我是使用Ubuntu 10.04LTS和emacs23.1.1的linux的新手。 I used the Alt key as Meta, but it stopped working when I upgraded ubuntu. 我使用Alt键作为Meta,但是当我升级ubuntu时它停止了工作。 I changed meta to right ctrl (using ubuntu keyboybard preference). 我将meta改为右ctrl(使用ubuntu keyboybard偏好)。 Right controll works fine in accesing third level characters in emacs when using Norwegian layout. 使用挪威语布局时,右控件可以正常访问emacs中的第三级字符。 However typing Meta-x only result in the message "Mismatched parantheses" in emacs and the character '»' in the buffer. 但是,键入Meta-x只会导致emacs中的消息“Mismatched parantheses”和缓冲区中的字符“»”。 Switching to US layout nothing happens when typing meta-x. 切换到US布局时输入meta-x没有任何反应。

I want meta-x to work so I can insert commands again in emacs. 我想让meta-x工作,所以我可以在emacs中再次插入命令。

Remedies I have tried: 我试过的补救措施:

Changing meta key with ubuntu keyboard preference -> Doesn't work 使用ubuntu键盘首选项更改元键 - >不起作用

I looked for the file file .Xdefaults with locate. 我找了一个文件文件.Xdefaults with locate。 Since it didn't exist I created it in home\\"username". 由于它不存在,我在home \\“username”中创建了它。 And wrote the line "Xterm*metaSendEscape: true" in the file. 并在文件中写了“Xterm * metaSendEscape:true”这一行。 (I am not sure what it does. Maybe this is a fix is ment for another problem, I found it at http://www.emacswiki.org/emacs/EmacsChannelFaq#toc17 ) -> Doesn't work (我不确定它是做什么的。也许这是另一个问题的修复,我在http://www.emacswiki.org/emacs/EmacsChannelFaq#toc17找到了它) - >不起作用

Normally you could also use the ESC-Key for M-. 通常你也可以使用ESC-Key作为M-。 So Mx would be ESC-x 所以Mx将是ESC-x

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

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