From 18f7d6b9dada9ba974c5d41976125ccf0dc4ed09 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 13 May 2024 18:40:45 +0530 Subject: (Emacs/config)+scrolling functionality --- Emacs/.config/emacs/config.org | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 8eb48a3..505bc37 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -344,6 +344,17 @@ Who uses a mouse? 🤮 #+begin_src emacs-lisp (setq-default use-file-dialog nil) #+end_src +** Scrolling +Emacs can automatically scroll the buffer depending on how many lines +the cursor is away from the limits of the window. Here I set the +margin to 8 (so it'll start correcting at 8) and scroll-conservatively +to the same value so it'll keep the cursor centred. +#+begin_src emacs-lisp +(use-package emacs + :init + (setq scroll-conservatively 8 + scroll-margin 8)) +#+end_src * Core packages For my core packages, whose configuration doesn't change much anyway, ** General -- cgit v1.2.3-13-gbd6f