Problem: How to make Meta-x work in emacs?

Hi I am a newcomer to linux using Ubuntu 10.04LTS and emacs23.1.1. I used the Alt key as Meta, but it stopped working when I upgraded ubuntu. I changed meta to right ctrl (using ubuntu keyboybard preference). Right controll works fine in accesing third level characters in emacs when using Norwegian layout. However typing Meta-x only result in the message "Mismatched parantheses" in emacs and the character '»' in the buffer. Switching to US layout nothing happens when typing meta-x.

I want meta-x to work so I can insert commands again in emacs.

Remedies I have tried:

Changing meta key with ubuntu keyboard preference -> Doesn't work

I looked for the file file .Xdefaults with locate. Since it didn't exist I created it in home\"username". And wrote the line "Xterm*metaSendEscape: true" in the file. (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

有帮助吗?

解决方案

Normally you could also use the ESC-Key for M-. So M-x would be ESC-x

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top