Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use Alt as meta key in Windows for Emacs 23, especially M-x?

I tried to use Alt as meta key for the FSF Emacs 23 Windows version and for EmacsW32 but especially M-x (Alt-x) does not work.

Somehow I cannot use Alt as Meta key for Alt-x (M-x). I searched really hard and all I got is how to switch the meta key to Alt in w32-meta-style. Currently this variable has the value 'use Alt as Meta key'. I also tried all other values with no success. Furthermore I installed the unpatched version of emacs from http://ourcomments.org/Emacs/EmacsW32.html and the original binaries from gnu.org. All versions have the same problem.

Alt works as Meta, except for Alt-x (Meta-x).

My setup is as follows:

  • Windows 7 x64 Professional
  • German keyboard

This question is Windows specific as I have a working Ubuntu version of Emacs 23.

EDIT: It was Growl for Windows. It loads on start up and caputes all Alt-x inputs. So my solution was to just disable Growl as I do not need it anymore. Might be another App for you.

like image 503
ayckoster Avatar asked Jun 27 '11 15:06

ayckoster


People also ask

How do I use meta in Emacs?

The META key is sometimes labelled ALT . If you do not have it, press ESCAPE instead, followed by, say, x . frame: the rectangular "area" in which Emacs runs; Emacs starts with only one, but you can create more (look under the menu Files, or type C-x 5 2 ).

What is Alt key in Emacs?

Meta is Alt in Practice By default on all major operating systems in use (Windows, Linux, OS X), emacs maps its Meta to Alt key. So, practically speaking, the Meta key is the Alt key.

What is Emacs Meta key?

Meta (abbreviated as 'M' in Emacs documentation) is either the 'Esc' ("Escape") or 'Alt' ("Alternate") key on your keyboard, depending on how you set up your personal access to Emacs. We recommend using Alt as your Meta key. To do this in SecureCRT: From SecureCRT's menu, choose Options | Session Options.

How do you use meta keys?

Use. Generally, the Meta key worked similar to Macintosh's Command key, in that when held down it modified letters and symbols into immediate commands (shortcuts). On these keyboards the Control key was placed closest to the space bar, then the Meta key outside Control.


1 Answers

It should work out of the box. Does Alt+x work as M-x if you start Emacs with the -Q flag? That inhibits loading of your customizations, in case one of them is breaking M-x on Windows.

Also, Emacs only treats the left Alt key as Meta by default, the right Alt (AltGr), is used for entering special characters .

like image 90
Joakim Hårsman Avatar answered Oct 21 '22 22:10

Joakim Hårsman