4
Update: While the following should still work (I no longer have access to a Windoze box), pyrospade points out that there is a way to do this directly from within Console2 nowadays. I have no idea if that's accurate but I wanted to point it out. Thanks!
Now, on with the show!
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. :)
Good thinking with the window title conditional there. – Nathaniel – 2010-04-13T02:12:22.777
1For future readers, not that there is a way to change the setting in Console2 - Edit > Settings > Hotkeys - find "Close tab", click the Clear button, then the Assign button. – pyrospade – 2013-06-04T21:49:15.217