I'm an Emacs/Mac user trapped on Windows at work and I often type Control-W from muscle memory to delete a word and thus by mistake kill the entire window, including everything that I was working on. This a particularly egregious problem for Console2 as I run GNU Screen and am often doing many things at once.

Is there any way to completely disable Control-W or remap it to something that is far harder to type?

Thanks!

Update: The solution I ended up with is the following:

My AutoHotkey configuration now looks like this.

#IfWinNotActive emacs@XXXXXXXXXXXX
    ^w::Return
#IfWinActive

Cause let's be honest, I was really doing this just because I use emacs. :)

link|improve this question

58% accept rate
Good thinking with the window title conditional there. – Nathaniel Apr 13 '10 at 2:12
feedback

3 Answers

up vote 2 down vote accepted

I've found this comment:

To actually answer your question...Search for "key mapper" on google. Among others it will lead you to sharewareconnection.com which lists many (some reviewed) mappers. One that is listed there that may be what you need is http://www.easysofts.com.cn/en/, but I can't be positive from the description, however you can ask them. At least this will point you in the right direction. Take the usual precautions when downloading and installing shareware.

I believe that this will allow you to disable CTRL-W on a Windows level (not just IE), but perhaps that is what you meant by "I don't ever want to use it."

on this post.

I've not investigated the link fully as yet, but it looks like it (or something like it) is what you want.

link|improve this answer
1  
It seems one could also easily write an AutoHotkey script to intercept the hotkey and do nothing with it. It looks like ^c::Return would do the trick. – Nathaniel Apr 12 '10 at 15:44
I have two PCs at work; one w/ admin rights and own w/o. I ended up going with How To Geek's Suggestions for the box that I have admin rights to and with @Nathaniel's suggestion on the machine w/o. – Tim Visher Apr 12 '10 at 17:09
See my update. I'm now not using a registry hack. – Tim Visher Apr 12 '10 at 18:58
feedback

Disabling the combo altogether for the whole system is not necessary; just open Console2, go to Edit->Settings->Hotkeys, and change the Close Tab hotkey to something else.

link|improve this answer
The problem is just particularly offensive in Console2. It's till pretty offensive everywhere else. :) However, this will at least relieve part of the paint point. – Tim Visher Apr 12 '10 at 16:35
“Everwhere else”? Like where? The Start Menu? The desktop? Why are you pressing Ctrl-W to select a word in those places? – Synetech Apr 13 '10 at 16:26
feedback

This article describes various means and programs : "Remapping the Keyboard Layout in Windows", either yourself via the registry, or by using the utilities SharpKeys or KeyTweak.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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