From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glyn Millington Newsgroups: gmane.emacs.devel Subject: Re: A wish, a plea Date: Fri, 22 Jun 2007 09:41:12 +0100 Organization: Utterly lacking Message-ID: <87d4zopejb.fsf@nowhere.org> References: <4679F561.4030600@hacksaw.org> <87y7icpgco.fsf@kfs-lx.testafd.dk> Reply-To: wistanswick@linuxmail.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182512919 17088 80.91.229.12 (22 Jun 2007 11:48:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Jun 2007 11:48:39 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 22 13:48:37 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I1hcy-0000KC-JP for ged-emacs-devel@m.gmane.org; Fri, 22 Jun 2007 13:48:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1hcy-0005wk-21 for ged-emacs-devel@m.gmane.org; Fri, 22 Jun 2007 07:48:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1hcH-0005jt-38 for emacs-devel@gnu.org; Fri, 22 Jun 2007 07:47:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1hcG-0005jM-D2 for emacs-devel@gnu.org; Fri, 22 Jun 2007 07:47:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1hcG-0005jG-2I for emacs-devel@gnu.org; Fri, 22 Jun 2007 07:47:52 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1hcF-0000Lc-HS for emacs-devel@gnu.org; Fri, 22 Jun 2007 07:47:51 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1I1h6V-0007Hv-ND for emacs-devel@gnu.org; Fri, 22 Jun 2007 13:15:04 +0200 Original-Received: from 82.152.120.109 ([82.152.120.109]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jun 2007 13:15:03 +0200 Original-Received: from wistanswick by 82.152.120.109 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jun 2007 13:15:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 82.152.120.109 X-Now-Playing: There's a deathly hush in the close tonight! X-Liturgical-Date: Optional Memorial: Saint Paulinus of Nola, bishop; Saints John Fisher, bishop and martyr and Thomas More, martyr, A.D. 2007 User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:H6h4Tc3haXoFtAl5AvE46VrbnZ0= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:73608 Archived-At: storm@cua.dk (Kim F. Storm) writes: > Hacksaw writes: > >> So I started writing, and I wrote for quite a while, it was really >> flowing well, and I thought, hey, I should save, because I don't want >> to lose this, but in my reverie, I hit the ^X^C first. > > Since both C-x and C-c are prefix keys, and thus used a lot in > sequence with other keys, C-x C-c has always seemed like a > particularly dangerous binding to me. > > One of the first things I changed when I started to use Emacs was > to change the "kill-emacs" binding to C-x C-c C-x > > (global-set-key "\C-x\C-c" 'nil) > (global-set-key "\C-x\C-c\C-x" 'save-buffers-kill-emacs) > > C-x C-c C-x works really well (it is still easy to type, and I've > never hit it accidentally). Another way round - pretty sure this isn't mine!! ;;; Don't quit unless you mean it! (defun maybe-save-buffers-kill-emacs (really) "If REALLY is 'yes', call save-buffers-kill-emacs." (interactive "sAre you sure about this? ") (if (equal really "yes") (save-buffers-kill-emacs))) (global-set-key [(control x) (control c)] 'maybe-save-buffers-kill-emacs) atb Glyn