diff options
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -90,6 +90,34 @@ | |||
90 | (global-visual-line-mode) | 90 | (global-visual-line-mode) |
91 | 91 | ||
92 | 92 | ||
93 | ;; --------------------------------- | ||
94 | ;; Scrolling | ||
95 | ;; --------- | ||
96 | ;; This makes the scrolling behavior | ||
97 | ;; smoother and easier to follow. | ||
98 | ;; --------------------------------- | ||
99 | |||
100 | ;; Small scroll margin makes it | ||
101 | ;; easier to see when to stop when | ||
102 | ;; scrolling fast. | ||
103 | (setq scroll-margin 2) | ||
104 | |||
105 | ;; Make mouse scroll smoother | ||
106 | (setq mouse-wheel-scroll-amount '(2)) | ||
107 | mouse-wheel-progressive-speed nil | ||
108 | mouse-wheel-follow-mouse t) | ||
109 | |||
110 | ;; Prevent jumpy scrolling | ||
111 | (setq scroll-conservatively 10 | ||
112 | auto-window-vscroll nil | ||
113 | scroll-preserve-screen-position t) | ||
114 | |||
115 | ;; Move point to beginning/end of | ||
116 | ;; buffer if attempting to scroll | ||
117 | ;; when already at the beginning/end | ||
118 | ;; of buffer | ||
119 | (setq scroll-error-top-bottom t) | ||
120 | |||
93 | 121 | ||
94 | 122 | ||
95 | ;; --------------------------------------------------------------------- | 123 | ;; --------------------------------------------------------------------- |