From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Preventing (or mitigating) accidental deletion in org-mode Date: Sun, 23 Aug 2009 16:39:16 +0200 Message-ID: <87my5qsigb.fsf@gmx.de> References: <4A9120DB.6030003@nickbell.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfEEJ-0001s8-Bt for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 10:39:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfEEE-0001nl-ST for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 10:39:35 -0400 Received: from [199.232.76.173] (port=53508 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfEEE-0001nO-Gu for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 10:39:30 -0400 Received: from mail.gmx.net ([213.165.64.20]:49673) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MfEED-0000fP-Sz for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 10:39:30 -0400 In-Reply-To: <4A9120DB.6030003@nickbell.org> (Nick Bell's message of "Sun, 23 Aug 2009 11:58:35 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Bell Cc: emacs-orgmode@gnu.org Nick Bell writes: > It there any way I can confirm all deletions of significant amounts of > data? > > I've tried wimpy-del.el > but, although it seems to work when called directly (e.g. M-x > kill-region-wimpy) it doesn't intercept all other functions which > might cause data deletion. Re-bind keys like C-w et al in org-mode-hook? Untested: (defun org/wimpy-kill-setup () "Re-bind keys, that remove a significant amount of data." (define-key org-mode-map [(control ?w)] 'kill-region-wimpy) ;; ... ) (add-hook 'org-mode-hook 'org-/wimpy-kill-setup) Sebastian