From: tfheen Date: Sun, 12 Jan 2003 18:08:03 +0000 (+0000) Subject: Only have C-x C-c disabled if we're in X. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1ae44a397a81e6e884437ff45db6ecd7291bcdc;p=dotfiles Only have C-x C-c disabled if we're in X. git-svn-id: file:///svn/tfheen/trunk/dotfiles@122 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/emacs b/emacs index 7a77130..1e0740a 100644 --- a/emacs +++ b/emacs @@ -52,7 +52,10 @@ (global-set-key "\M-n" 'browse-url-at-point) (global-set-key (kbd "C-x C-c") #'(lambda () (interactive) - (message "you must be kidding"))) + (if window-system + (message "you must be kidding") + (save-buffers-kill-emacs)))) + (global-set-key [(control backspace)] 'undo) (global-set-key [(control return)] 'find-tag)