Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I have test-assigned some function on mouse-3, and I want to revert the default feature assigned to it to compare which function is more useful to assign to the mouse-3, I have to comment out the particular assigning statement from the init file, and then restart emacs. I could do (global-unset-key (kbd "")), but that would just unable the mouse-3 instead of get back the default feature assigned to it. It's cumbersome to restart emacs every time I'm in this kind of situation (I've been in this kind of situation many times.); is there a way to do this without restarting?

share|improve this question

Load library mouse.el (again). It binds the default mouse keys.

Or just visit it (M-x find-library RET mouse.el RET) and evaluate the relevant key-binding code.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.