Can I tell emacs to paste (middle mouse button) on the cursor position?

If I paste text from, for example, the browser into emacs, the emacs cursor is often already at the position where I want to paste the text. If I would use emacs in console mode, I could just move the mouse over the text and press the middle button (if I had gpm disabled). But when using emacs in X (window) mode, I have to move the mouse cursor at the exact position where I want to past the text.

Is there a way to tell emacs to use the current emacs cursor position for pasting, instead of the mouse cursor position?

I hope you get my problem. :-)


Solution 1:

Try this setting:

(setq mouse-yank-at-point t)