【发布时间】:2011-09-11 13:40:56
【问题描述】:
我在互联网上找到的所有信息都告诉我,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 会产生:
鼠标滚轮模式:[隐藏值] [切换] 关闭(无)
[状态]:在自定义之外更改;在这里操作可能不可靠。
如果启用了鼠标滚轮模式,则为非零。 [隐藏休息]
见命令mouse-wheel-mode' for a description of this minor mode.Easy Customization')
Setting this variable directly does not take effect;
either customize it (see the info node
或调用函数“鼠标滚轮模式”。
组:[鼠标]
【问题讨论】:
-
您使用什么操作系统?你在终端中使用 Emacs 吗?
-
Linux Mint,我将“emacs”别名为“emacs -nw”。
-
那你确定是 Emacs 滚动而不是你的终端吗?
标签: emacs