Is there an easy way to disable mouse-3 (right click) from killing selected regions? I didn't see anything in the customize options that looked like it would do it. Wouldn't mind disabling middle button click paste as well.
Asked
Active
Viewed 142 times
2
1 Answers
1
I guess (global-set-key [mouse-3] nil)
should do it

dalanicolai
- 7,795
- 8
- 24
-
3
-
1That looks slightly more elegant indeed. I see that that function is described in Changing Key Bindings Interactively, but it is not described in Rebinding Keys in Your Init File. Well, we keep learning... – dalanicolai Apr 08 '22 at 05:48
kill
. The other does answer my question, but I do not know how long it would have taken me to realize that on my own; I wasn't thinking in terms of unbinding a key from an action so much as setting an option for whatever functionality is bound to mouse-3 by default. – Jacob Lee Apr 08 '22 at 21:54