I use Emacs for programming and also read mail in Gnus. My problem is that I'm typing fast, switching buffers and Windows etc, and too often accidentally hit some key that is bound to some command that screws everything up. And I have no idea what I did hit.
Could be harmless things like suddenly my summary buffer in Gnus start to line wrap. But also serious things that screws up the Gnus information about mailboxes and mails, and I have to spend hours to try find a backup of those files and get things to a reasonable state again.
So first the simple question, is there a way to let emacs produce a "command log"? I.e. I can go into a log file and see that I accidentally hit gnus-do-something-unwanted
so I can more easily find out how to get back to where I was before the incident?
Now, is there a way to globally in Emacs set so that all commands but those I have specified gives a dialog Do you really want to..?
. While I use Emacs most of the day I only use a subset of all commands. And maybe I could list them in a .emacs.what.i.use.el
file so that any emacs command outside those would bring me a dialog? This way preventing the disaster caused by a single accidental keystroke in Gnus or other mode?
If not possible, maybe there is a way to unbind all keys beside those I really use in Gnus? Lik (gnus-unbind-all-keys-beside ....)
? :)