diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-05-13 18:40:45 +0530 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-05-13 18:40:45 +0530 |
commit | 18f7d6b9dada9ba974c5d41976125ccf0dc4ed09 (patch) | |
tree | 02ee0748b060fc56827229fc9a882820ad245a20 | |
parent | fdef946d6555b01b33fe496cdcd6fb293ae11eab (diff) | |
download | dotfiles-18f7d6b9dada9ba974c5d41976125ccf0dc4ed09.tar.gz dotfiles-18f7d6b9dada9ba974c5d41976125ccf0dc4ed09.tar.bz2 dotfiles-18f7d6b9dada9ba974c5d41976125ccf0dc4ed09.zip |
(Emacs/config)+scrolling functionality
-rw-r--r-- | Emacs/.config/emacs/config.org | 11 |
1 files changed, 11 insertions, 0 deletions
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 |