On Wed, Jun 21, 2017 at 1:35 PM, Luca Ferrari <fluca1...@infinito.it> wrote:
> > I like Geany, but it does not support the "Secondary Selection" > > clipboard. This clipboard would save me a bunch of time as > > I would not lose my cursor hot spot. > > Emacs <https://www.gnu.org/software/emacs/manual/html_node/emacs/ > Secondary-Selection.html> Out of the box, this will move the cursor ("placing point at the end of the yanked text"). Precisely what the OP didn't want. But hey, emacs is nothing if not customizable. :) Just add to ~/.emacs (and eval the form, or restart emacs) the following or something like it (TIMTOWTDI): (advice-add 'mouse-yank-secondary :around #'(lambda (orig-fun &rest args) "Preserve point and mark and stuff" (save-excursion (apply orig-fun args)))) Eirik