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.
1 Answer
I guess (global-set-key [mouse-3] nil)
should do it
-
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... Commented Apr 8, 2022 at 5: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.