10 later thoughts

0

To quickly close window in Emacs and kill the buffer that was open in it, use C-x 4 0 (function kill-buffer-and-window)

Manual reference

2 earlier thoughts