When I scroll up or down, Emacs automatically recenters the current position of point. I tried to disable this behavior by adding the following code to my configuration:
(setq scroll-margin 1
scroll-conservatively 10000
scroll-up-aggressively 0.01
scroll-down-aggressively 0.01
auto-hscroll-mode nil
scroll-step 1)
Unfortunately, it doesn't work. I really tried all variables I can find.
NB: I am using AUCTeX and emacsclient
.