From 848c1407e0646438596fbc96e01942f8411e1474 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Thu, 15 Sep 2022 09:06:12 -0400 Subject: Improved scrolling behavior --- init.el | 4 ++-- lisp/general.el | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/init.el b/init.el index 8efd5c1..5e87af9 100644 --- a/init.el +++ b/init.el @@ -14,7 +14,7 @@ (setq package-list - '(counsel smartparens xref-js2 eglot json-mode markdown-mode emojify tern rtags cmake-ide cmake-mode tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org)) + '(good-scroll counsel smartparens xref-js2 eglot json-mode markdown-mode emojify tern rtags cmake-ide cmake-mode tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org)) ;; Fetch the list of packages available (unless package-archive-contents @@ -60,7 +60,7 @@ '(org-agenda-files (list org-directory)) '(org-directory "~/Documents/org") '(package-selected-packages - '(counsel ## smartparens xref-js2 eglot json-mode markdown-mode emojify tern rtags cmake-ide cmake-mode tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org))) + '(good-scroll counsel ## smartparens xref-js2 eglot json-mode markdown-mode emojify tern rtags cmake-ide cmake-mode tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org))) ;;; init.el ends here (custom-set-faces diff --git a/lisp/general.el b/lisp/general.el index d22e813..87a381b 100644 --- a/lisp/general.el +++ b/lisp/general.el @@ -76,12 +76,7 @@ (evil-define-key 'normal neotree-mode-map (kbd "H") 'neotree-hidden-file-toggle) ;; Smooth scroll -(setq redisplay-dont-pause t - scroll-margin 1 - scroll-step 1 - scroll-conservatively 10000 - scroll-preserve-screen-position 1) - +(good-scroll-mode 1) ;; Line highlighting (global-hl-line-mode 1) -- cgit v1.2.1