(setq scroll-preserve-screen-position t)
With this settingWith this setting, if you page up and down, the cursor returns to its original line. It also retains its original column in Emacs version 23 or newer.
You may or may not prefer
(setq scroll-preserve-screen-position 'always)
which always preserves the cursor's screen position when scrolling, rather than preserving the cursor position in the buffer if the original position is still visible.