For vim/gvim check mouse options and gui options as it impacts some of the selection behavior.
On Thu, Jun 22, 2017 at 11:01 AM, Jan Ingvoldstad <frett...@gmail.com> wrote: > Hah, I see that my original response only went to ToddAndMargo, how > dull-witted I must have been. > > On Wed, Jun 21, 2017 at 10:13 PM, The Sidhekin <sidhe...@gmail.com> wrote: > > > > 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)))) > > There are some other tricks, too, sure: > > https://www.emacswiki.org/emacs/SecondarySelection > -- > Jan > -- https://www.facebook.com/vijayvithal.jahagirdar https://twitter.com/jahagirdar_vs http://democracies-janitor.blogspot.in/