Skip to content

Instantly share code, notes, and snippets.

@chee
Created October 8, 2013 15:48
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 chee/6886827 to your computer and use it in GitHub Desktop.
Save chee/6886827 to your computer and use it in GitHub Desktop.
(defun delete-frame-or-quit ()
(interactive)
(condition-case nil
(delete-frame)
(error save-buffers-kill-terminal)))
(global-set-key (kbd "C-x C-c") 'delete-frame-or-quit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment