I'd like to make Emacs not just bury a buffer but kill it too when I press q in a *Completions*/*Help*/etc buffer. I can't get the substitute-key-definition function to work. I'm running Emacs24 on OSX.
Here's what I have:
(substitute-key-definition
'quit-window '(lambda () (interactive) (quit-window "KILL")) global-map)