I'm viewing a file containing visually aligned columns in truncate line mode, and would like to scroll vertically without changing my horizontal scroll position. But scroll-down always moves the cursor to the first column. Is there a simple way to prevent this, and keep the current horizontal point position?
I believe you're looking for something like:
(setq scroll-preserve-screen-position 'always)
goal-column might help in this regard.
C-h v goal-column says:
goal-columnis a variable defined in
Its value is
Automatically becomes buffer-local when set.
Semipermanent goal column for vertical motion, as set by
C-x C-n, or
nilsetting overrides the variable
line-move-visual, which see.
You can customize this variable.