Created
January 24, 2011 11:46
-
-
Save tkosaka/793119 to your computer and use it in GitHub Desktop.
Kill the current buffer and its frame.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun kill-buffer-and-frame () | |
"Kill the current buffer and its frame." | |
(interactive) | |
(call-interactively 'kill-buffer) | |
(call-interactively 'delete-frame) | |
) | |
(global-set-key "\C-xK" 'kill-buffer-and-frame) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment