diff options
author | noa@gaiwan.org | 2024-06-23 17:54:43 +0000 |
---|---|---|
committer | noa@gaiwan.org | 2024-06-23 17:54:43 +0000 |
commit | 97f325d3709a95825b11bccaaaceb4627140a5a4 (patch) | |
tree | 030ecf55af4368ddd00fb4dc8b497aac5f1463b4 | |
parent | 9b45ebd98e2026045fa8ab3dfe8ac143414b4032 (diff) |
Update scrolling and recentering
-rw-r--r-- | config.org | 5 |
1 files 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. |