2

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.

Drew
  • 77,472
  • 10
  • 114
  • 243
Jacob Lee
  • 227
  • 2
  • 7
  • 2
    Does this answer your question? How to unbind a key? – Drew Apr 07 '22 at 20:58
  • You're right, @Drew, I meant 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
  • 1
    Edited title per your comment: kill, not yank. – Drew Apr 08 '22 at 22:18

1 Answers1

1

I guess (global-set-key [mouse-3] nil) should do it

dalanicolai
  • 7,795
  • 8
  • 24