|
From: | Sebastian Rose |
Subject: | Re: [Orgmode] Preventing (or mitigating) accidental deletion in org-mode |
Date: | Sun, 23 Aug 2009 16:39:16 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Nick Bell <address@hidden> writes: > It there any way I can confirm all deletions of significant amounts of > data? > > I've tried wimpy-del.el <http://www.emacswiki.org/emacs/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
[Prev in Thread] | Current Thread | [Next in Thread] |