Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1071265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:41:30+00:00 2026-05-16T20:41:30+00:00

I use my command keys as extra control keys on Mac OS X (and

  • 0

I use my command keys as extra control keys on Mac OS X (and I believe the space cadet keyboards had this configuration). I want to emulate this on my Windows machines by switching Alt to Ctrl and the Windows key to Alt within Emacs. Is this possible? I found this post which suggests something like

(setq w32-pass-lwindow-to-system nil 
      w32-pass-rwindow-to-system nil 
      w32-pass-apps-to-system nil 
      w32-lwindow-modifier 'super ;; Left Windows key 
      w32-rwindow-modifier 'super ;; Right Windows key 
      w32-apps-modifier 'hyper) ;; Menu key

to get super and hyper keys upon pressing the windows key. When I try to remap this to 'control to test it out (but eventually I want it to be meta and Alt as Ctrl, as mentioned), windows-e still gets intercepted by Windows (XP) and opens Explorer, but seems like a good place to start? I would appreciate any suggestions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:41:31+00:00Added an answer on May 16, 2026 at 8:41 pm

    From the documentation for w32-pass-lwindow-to-system:

    Note that some combinations of the left “Windows” key with other keys are
    caught by Windows at low level, and so binding them in Emacs will have no
    effect. For example, <lwindow>-r always pops up the Windows Run dialog,
    <lwindow>-<Pause> pops up the “System Properties” dialog, etc. However, see
    the doc string of `w32-phantom-key-code’.

    From the documentation for w32-phantom-key-code:

    Virtual key code used to generate “phantom” key presses.
    Value is a number between 0 and 255.

    Phantom key presses are generated in order to stop the system from
    acting on “Windows” key events when `w32-pass-lwindow-to-system’ or
    `w32-pass-rwindow-to-system’ is nil.

    And as it also says on Xah’s website:

    There’s no way around that unless you use other tools such as AutoHotkey. Even so, it may not be possible to disable 【Win+l】 (lock window) and 【Win+u】 (easy access).

    So it seems that if it doesn’t work with the method he describes (which seems right), you should look into AutoHotKey.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use svn command line with beyond compare and get the following
I want to use multiple private keys to connect to different servers or different
I want to use a temp directory that will be unique to this build.
I compiled GNU Emacs 23.2.1 on remote host but really want to use command
How can I use command line arguments in a creationComplete event handler? It seems
You can use command lsof to get file descriptors for all running processes, but
i use the command line in windows to compile and then execute my java
When I use `gqap' command to reflow a paragraph in vim, vim seems to
I have a winforms projects and we use the command pattern. We are trying
In my program, I have been receiving an error when I use a command-line

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.