Search code examples
windowsemacsmeta

Emacs on Windows: mapping the Meta key to something else than Alt


I read for a few hours on different threads for this issue without any results. Every time I was doing searches for something like

"lwindow" meta

I was always getting into EmacsWin32 code which appears to be code developed in 2006.

So, here I am to ask the question:

Is it possible to remap the Meta key, for Emacs, in Windows to something else than Alt?

I would prefer to remap it to the Windows key, but I don't think it is possible. Then the Fn (function) key would be a good alternative.

I need my Alt key operational in Emacs since it is used for all kind of things on a French keyboard.


Solution

  • Finally the only thing that worked for me is to use the

    (require 'iso-transl)
    

    That is making sure that the mapping of my (Canadian) French keyboard is working properly.

    Then I started to use the right Alt instead of the left one. That way, I can do everything that I was doing with Ctrl+Alt.