A better shortcut for delete-frame

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)
  • Clément Pit-Claudel

    I use M-F4 🙂

    • A good solution too! For my laptop I have to hold the function key to use F4 (or any other function key) so I tend to avoid using them.