Following on from my post on using C-x k
to kill the current buffer, why not bind C-x w
to delete-frame
in order close the current emacs “window” (remember, in Emacs-speak, a frame is what most other apps would call a window). This is way better than the default C-x 5 0
Just add the following to your emacs config file
(global-set-key (kbd "C-x w") 'delete-frame)