(require 'smooth-scroll) (smooth-scroll-mode t)
.emacs, or smooth scrolling with
(require 'smooth-scrolling) (smooth-scrolling-mode 1)
does turn on the smooth scrolling mode just fine, but two-finger vertical swipes on the trackpad do not deliver the purported smooth scrolling.
Switching to Yamamoto Mitsuharu's Emacs is a bit too much for just this one nice feature. I'd rather stick to a package.
Did you manage to get either of these two packages to smooth scroll with 26.1 or a recent version of Emacs?
By "smooth scroll" here I mean that one would get the scrolling obtained with, say, Safari (with files whose length exceeds that of the window/frame).
The discussions online
- Set scroll-amount for mouse wheel in .emacs
- Can scrolling be smoother than single line in emacs/org-mode?
- How do we achieve real smooth scrolling?
- pixel-scroll-mode is slow
- emacs OS X smooth scroll
are inherently confused. Missing in the middle of the questions/conversations is a definition of "line" in the expression "smooth scrolling by line". One solution is to qualify that term by replacing it with either "character-line" or "pixel-line". The present question is about the latter.