Every single time I highlight something in emacs, it copies it. Is there any way to disable this annoying behavior? Im on ubuntu.
Asked
Active
Viewed 772 times
5
-
2I'm surprised if all your other X applications don't do this as well (it's very standard behaviour). – phils Aug 10 '10 at 05:30
-
I'd be curious to know why you don't like this behavior: I find it one of those hidden niceties of X. – Joel J. Adamson Aug 10 '10 at 14:42
-
2when im copying something and accidently highlight something in my emacs browser, its annoying for something to be pushed onto the copy ring or whatever. alt w is quick enough for me that highlighting is not really necessary for emacs! – josh Aug 11 '10 at 04:19
1 Answers
7
This setting should disable it:
(setq mouse-drag-copy-region nil)
Documentation for the variable is:
Documentation: If non-nil, mouse drag
copies region to kill-ring.

Trey Jackson
- 73,529
- 11
- 197
- 229
-
Is there a way to do this for all applications and not just emacs? – Drooling_Sheep Mar 23 '11 at 01:28
-
I know I'm late for the party, but @Drooling_Sheep: check out and possibly remove any clipboard handler your DE might be stuffing down your throat. You'll get X selection and X clipboard registers then separately. Those two are probably blended by the handler. – mike3996 Oct 18 '13 at 21:36