[Emacs] Change scrolling behavior in Emacs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lucien Cartier-Tilet 2022-04-11 14:50:29 +02:00
parent f29e48ed37
commit b0ace772ce
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -139,6 +139,14 @@ in camelCase words, and allows us to jump words on this finer level.
(global-subword-mode 1) (global-subword-mode 1)
#+end_src #+end_src
Changing half my screen each time my cursor goes too high or too low
is not exactly ideal. Fortunately, if we set ~scroll-conservatively~
high enough we can have the cursor stay on top or at the bottom of the
screen while the text scrolls progressively.
#+begin_src emacs-lisp
(setq scroll-conservatively 1000)
#+end_src
Lastly, I want the default mode for Emacs to be Emacs Lisp. Lastly, I want the default mode for Emacs to be Emacs Lisp.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq-default initial-major-mode 'emacs-lisp-mode) (setq-default initial-major-mode 'emacs-lisp-mode)