我在互联网上找到的所有信息都告诉我,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)
有时候我的拇指会刷过触摸板,突然间我就会在另一行的中间或上面或下面进行输入。如何防止这种情况发生?
编辑 运行M-x customize-option mouse-wheel-mode得到:
鼠标滚轮模式:[隐藏值] [切换] 关闭(nil)
[状态]:在自定义之外更改;在此处操作可能不可靠。
如果启用鼠标滚轮模式,则为非nil。[隐藏其他]
有关此次要模式的说明,请参见命令mouse-wheel-mode'。
Easy Customization'),
直接设置此变量无效;
请自定义它(请参见信息节点
或调用函数`mouse-wheel-mode'。
组:[鼠标]