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 cant get the substitute-key-definition function to work. I'm running emacs24 on osx.
Heres what I have:
(substitute-key-definition
'quit-window '(lambda () (interactive) (quit-window "KILL")) global-map)