Markus Grebenstein <p...@mgrebenstein.de> writes:

> Dear List,
>
> from time to time I involuntarily archive parts of my thesis when I
> want to save (it happens when I mess up the saving keys). Since I
> recognized this a couple of days or even weeks later this makes
> recovering complicated.
>
> Therefore I would love to have the possibility to be asked whether I
> really want to do that.

Is this what you want:

,----
| (emacs)Top > Customization > Key Bindings > Disabling                         
                                  
| 
| 57.4.11 Disabling Commands
| --------------------------
| 
| Disabling a command means that invoking it interactively asks for
| confirmation from the user.  The purpose of disabling a command is to
| prevent users from executing it by accident; [...]
`----

For example, I have this in my macbook ~/.emacs


,----
| ;; get rid of pesky aquamacs-save-buffers-kill-emacs binding
| 
| (put 'aquamacs-save-buffers-kill-emacs  'disabled 
|      "Use C-x C-c to quit\n")
| 
| (put 'aquamacs-print 'disabled "Why print?\n")
`----

To protect against the commands bound to clover-p and clover-q being
inadvertently run when what I really wanted was M-p or M-q. (The clover
key sits next to the 'M-' on my keyboard.)



HTH,

Chuck

 I used
> org-archive-subtree-default-with-confirmation but I did not get what
> the meaning of that one is. When I use that command I am sure that I
> want to archive and as far as I see it does not change the default
> behavior.
>
> Does anybody have an idea how to achieve what I want?
> Thanks in advance,
>
> Markus
>
>
>

-- 
Charles C. Berry                            Dept of Family/Preventive Medicine
cberry at ucsd edu                          UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901


Reply via email to