Skip to content

Instantly share code, notes, and snippets.

@tkosaka
Created January 24, 2011 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkosaka/793119 to your computer and use it in GitHub Desktop.
Save tkosaka/793119 to your computer and use it in GitHub Desktop.
Kill the current buffer and its frame.
(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