From f1ae44a397a81e6e884437ff45db6ecd7291bcdc Mon Sep 17 00:00:00 2001 From: tfheen Date: Sun, 12 Jan 2003 18:08:03 +0000 Subject: [PATCH] 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 --- emacs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.39.5