I use emacs and evil. If I set a marker using
'evil-set-marker, scroll elsewhere in the file, and then execute
'evil-goto-mark-line, the window will scroll back until the position I’ve jumped to is visible, but will not return it to the same screen position. For example, the line I started from may have been the 3rd line from the top of the window, but will not necessarily be that anymore.
Is there a library that will restore windows to the same screen position when I execute
'evil-goto-mark-line? For an additional refinement, I would like this behaviour only if jumping to the marker involves scrolling.
From a similar question, it looks like what I want to happen is for evil to store
(window-start) when making a marker, and then set it again (using
'set-window-start) when jumping to that marker. I will probably code this up now that I know this, but I would still like to know if there is a library that will handle it for me.