]> err.no Git - dotfiles/commitdiff
Only have C-x C-c disabled if we're in X.
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sun, 12 Jan 2003 18:08:03 +0000 (18:08 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sun, 12 Jan 2003 18:08:03 +0000 (18:08 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@122 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

emacs

diff --git a/emacs b/emacs
index 7a771300e1bb09f36621c7e9fc9d3a14078896e8..1e0740a2daac851e792e972be3e524e0a208837b 100644 (file)
--- a/emacs
+++ b/emacs
 (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)