From: Sebastian Rose <sebastian_rose@gmx.de>
To: Nick Bell <mail@nickbell.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Preventing (or mitigating) accidental deletion in org-mode
Date: Sun, 23 Aug 2009 16:39:16 +0200 [thread overview]
Message-ID: <87my5qsigb.fsf@gmx.de> (raw)
In-Reply-To: <4A9120DB.6030003@nickbell.org> (Nick Bell's message of "Sun, 23 Aug 2009 11:58:35 +0100")
Nick Bell <mail@nickbell.org> 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
next prev parent reply other threads:[~2009-08-23 14:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-23 10:58 Preventing (or mitigating) accidental deletion in org-mode Nick Bell
2009-08-23 12:04 ` Leo
2009-08-23 12:30 ` Andrew Stribblehill
2009-08-23 12:20 ` PT
2009-08-23 12:27 ` Nick Bell
2009-08-23 12:39 ` Leo
2009-08-23 12:59 ` Nick Bell
2009-08-23 14:39 ` Sebastian Rose [this message]
2009-08-23 18:39 ` Russell Adams
2009-08-23 18:45 ` Nick Bell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87my5qsigb.fsf@gmx.de \
--to=sebastian_rose@gmx.de \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nickbell.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.