Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Alt-Shift-5 (okay, technically Meta-%) is the Emacs key combo for query-replace. Unfortunately -- though, weirdly, I can't find this documented anywhere -- it also seems to be the Windows key combo for closing a window, which means that on average I can get about half an hour out of Emacs on a Windows box before I forget and kill the shell it's running in. Is there any way to change this, either globally or on a per-application basis?

share|improve this question

migrated from serverfault.com Feb 23 '12 at 19:55

This question came from our site for professional system and network administrators.

2  
What version of windows are you running? Are you running Emacs natively? I can find no information where Alt+Shift+5 is a windows close keyboard shortcut. Check here for a list of windows keyboard shortcuts. –  Nic Young Feb 23 '12 at 19:47
    
Indeed. Ctrl+W closes windows, I just mashed Alt+Shift+5 over and over again and nothing happened... –  Mark Henderson Feb 23 '12 at 19:55
    
Windows 7. It closes IE, WordPad, MS Word, CMD.EXE, Windows PowerShell, and probably two or three other things I tried that I've forgotten, but not Chrome. –  David Moles Feb 23 '12 at 20:09
    
Not sure if this will solve your problem, but you can remap keys on a per-application basis with autohotkey. –  Fase Feb 29 '12 at 14:24
add comment

1 Answer

Do you have a laptop keyboard that overloads the number keys with F1, F2 when you press an additional modifier? That may be your problem. Shift-Alt-5 does not close a window using a default installation of Windows 7.

Note that the "alt" key and function or meta are usually quite distinct, depending on the laptop.

Also check for any of the default garbage "utilities" installed by the laptop vendor that has Keyboard shortcut functionality. Dell used to bundle a Wifi utility that had a bunch of keyboard mappings that conflicted with other things.

share|improve this answer
    
It's not a laptop, but it is Dell, so you may be on to something. –  David Moles Feb 23 '12 at 20:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.