tweak: scroll-conservatively = 10

Forces the window to recenter if the cursor moves >=10 lines off-screen.
This makes some of our manual recentering elsewhere unnecessary.
This commit is contained in:
Henrik Lissner 2023-09-11 23:52:27 +02:00
parent a7123bf65f
commit f427c8a30e
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
6 changed files with 5 additions and 16 deletions

View file

@ -50,10 +50,6 @@ Only has an effect in GUI Emacs.")
;; ...then refresh the rest only when we switch to them, not all at once.
(add-hook 'doom-switch-buffer-hook #'+magit-revert-buffer-maybe-h)
;; Center the target file, because it's poor UX to have it at the bottom of
;; the window after invoking `magit-status-here'.
(advice-add #'magit-status-here :after #'doom-recenter-a)
;; The default location for git-credential-cache is in
;; ~/.cache/git/credential. However, if ~/.git-credential-cache/ exists, then
;; it is used instead. Magit seems to be hardcoded to use the latter, so here