From 97f325d3709a95825b11bccaaaceb4627140a5a4 Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Sun, 23 Jun 2024 17:54:43 +0000 Subject: Update scrolling and recentering --- config.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config.org b/config.org index 3d806a6..a8c8d2d 100644 --- a/config.org +++ b/config.org @@ -1203,10 +1203,11 @@ Hide commands in M-x which do not work in the current mode. * Miscellaneous -C-l goes in order +C-l goes in order, rather than first centering the cursor. This is particularly pleasant with a ~scroll-margin~ greater than the default of zero, which serves to keep a line of context at each edge of the screen, as well as triggering a scroll when the point is that far away from the screen edge. #+begin_src elisp -(setopt recenter-positions '(top middle bottom)) + (setopt recenter-positions '(top middle bottom)) + (setopt scroll-margin 1) #+end_src Emacs uses choppy scrolling by default. If i scoll with my trackpad, it's nice to have it move tiny amounts at the same time as my fingers, which pixel-scroll-precision-mode allows for. This also has the benefit of making scrolling over images a little bit of a nicer experience. -- cgit 1.4.1-2-gfad0