summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2022-09-15 09:06:12 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2022-09-15 09:06:12 -0400
commit848c1407e0646438596fbc96e01942f8411e1474 (patch)
treed2fd7b9f5f3c766cb73e2fef42548ef235e1e9fe
parentf52f8ada8927a60be48619b8339aa853cab40c6a (diff)
Improved scrolling behavior
-rw-r--r--init.el4
-rw-r--r--lisp/general.el7
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)