emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Preventing (or mitigating) accidental deletion in org-mode


From: Russell Adams
Subject: Re: [Orgmode] Preventing (or mitigating) accidental deletion in org-mode
Date: Sun, 23 Aug 2009 13:39:41 -0500
User-agent: Mutt/1.5.18 (2008-05-17)

You're recreating what version control is for.

I have my org-files setup in a Bazaar repo, and if any changes were
made it auto-commits hourly via cron. I can also manually commit.

Prior to committing, I can press C-x v = to see a diff of what has
changes, and the Bazaar tools make it easy to step backward through
the history to see changes.

Version control is your backup and your protection against data loss.

On Sun, Aug 23, 2009 at 04:39:16PM +0200, Sebastian Rose wrote:
> 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
> 
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 


------------------------------------------------------------------
Russell Adams                            address@hidden

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]