Skip to content

Commit

Permalink
[defaults] Improve scrolling with mouse wheel
Browse files Browse the repository at this point in the history
Thanks to Profpatsch.

Fixes #1781
  • Loading branch information
syl20bnr authored and smile13241324 committed Apr 8, 2021
1 parent 948d15a commit 01a84d9
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions layers/+spacemacs/spacemacs-defaults/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ It runs `tabulated-list-revert-hook', then calls `tabulated-list-print'."
;; (tabulated-list-print t)
(tabulated-list-print))

;; Mouse cursor in terminal mode
(xterm-mouse-mode 1)

;; Highlight and allow to open http link at point in programming buffers
;; goto-address-prog-mode only highlights links in strings and comments
(add-hook 'prog-mode-hook 'goto-address-prog-mode)
Expand All @@ -78,6 +75,19 @@ It runs `tabulated-list-revert-hook', then calls `tabulated-list-print'."
;; Don't try to ping things that look like domain names
(setq ffap-machine-p-known 'reject)

;; ---------------------------------------------------------------------------
;; Mouse
;; ---------------------------------------------------------------------------

;; Mouse cursor in terminal mode
(xterm-mouse-mode 1)

(when (boundp 'mouse-wheel-scroll-amount)
;; scroll two line at a time (less "jumpy" than defaults)
(setq mouse-wheel-scroll-amount '(2)
;; don't accelerate scrolling
mouse-wheel-progressive-speed nil))

;; ---------------------------------------------------------------------------
;; Edit
;; ---------------------------------------------------------------------------
Expand Down

0 comments on commit 01a84d9

Please sign in to comment.