emacs在屏幕上显示文本后停止滚动

use*_*461 5 emacs

我是一个新的emacs用户,当我在emacs中使用鼠标滚动缓冲区时,我感到非常不舒服.当我继续滚动时,emacs仅在最后一行缓冲区到达顶部可见行时停止.虽然迷你缓冲区尖叫缓冲区结束,但滚动仍在继续,这非常令人讨厌.

在使用鼠标滚动时,如何使emacs的行为与任何其他编辑器/浏览器一样?

Mat*_*ier 1

尝试将其添加到您的 .emacs ( ~/.emacs )。这对我在 OSX 上有效。更多信息请点击此处

;; scroll one line at a time (less "jumpy" than defaults)

(setq mouse-wheel-scroll-amount '(1 ((shift) . 1))) ;; one line at a time

(setq mouse-wheel-progressive-speed nil) ;; don't accelerate scrolling

(setq mouse-wheel-follow-mouse 't) ;; scroll window under mouse

(setq scroll-step 1) ;; keyboard scroll one line at a time
Run Code Online (Sandbox Code Playgroud)