在Emacs中禁用鼠标滚动

Col*_*ury 3 emacs

我在互联网上发现的一切都告诉我,emacs默认禁用鼠标滚动,但是当我的拇指太靠近我的笔记本电脑上的触控板时,我非常热情并滚动到它的内容.我没有允许这样做,这是我的.emacs来证明它:

;; Line by line scrolling                                                                                                                                      
(setq scroll-step 1)

;; Turn off backup file creation                                                                                                                               
;;(setq make-backup-files nil)                                                                                                                                 

;; Enable backup files                                                                                                                                         
(setq make-backup-files t)

;; Save all backup files to this directory                                                                                                                     
(setq backup-directory-alist (quote ((".*" . "~/.emacs_backups/"))))

;; Show column number                                                                                                                                          
(column-number-mode 1)

;; Fix C indenting                                                                                                                                             
(setq c-default-style "bsd"
      c-basic-offset 8)
Run Code Online (Sandbox Code Playgroud)

每隔一段时间,我的拇指就会刷上履带板,突然间我会在另一条线的中间打字,或者从我刚刚到达的地方下方打字.我怎么能阻止这种情况发生?

编辑 运行Mx自定义选项鼠标滚轮模式产生:

鼠标滚轮模式:[隐藏值] [切换]关闭(无)

[国家]:在定制之外改变; 在这里进行操作可能不可靠.

如果启用了鼠标滚轮模式,则为非零.[Hide Rest]
参见Easy Customization 命令') 或调用函数`mouse-wheel-mode'.团体:[鼠标]mouse-wheel-mode' for a description of this minor mode.
Setting this variable directly does not take effect;
either customize it (see the info node

Mic*_*ert 6

它默认启用(至少从Emacs 23开始).

要将其关闭(本地):

(mouse-wheel-mode -1)
Run Code Online (Sandbox Code Playgroud)

要关闭它(全局):

M-x customize-option mouse-wheel-mode ; set to nil and save
Run Code Online (Sandbox Code Playgroud)

但也许您只想调整设置:看看Mx customize-group mouse RET