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. :-)

link|improve this question

feedback

1 Answer

up vote 2 down vote accepted

Try this setting:

(setq mouse-yank-at-point t)
link|improve this answer
Great, although this settings doesn't show up on M-x mouse-yank... auto-complete, it works when I put this in my .emacs :-) – Flow Sep 1 '11 at 19:44
That's because it's a variable, not a function. You could use M-x set-variable RET mouse-yank-at-point (and completion should work here) – Antoine Pelisse Sep 2 '11 at 11:39
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.