Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meta-x doesn't work in Emacs

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

like image 465
Qyvind Avatar asked Dec 22 '22 17:12

Qyvind


1 Answers

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

like image 155
Ocaso Protal Avatar answered Dec 24 '22 07:12

Ocaso Protal