Commits

Toby Davies committed a87b77f

mouse works in a saner way

  • Participants
  • Parent commits 3aa186e

Comments (0)

Files changed (1)

 
 (setq-default indent-tabs-mode nil)
 (setq column-number-mode t)
+(show-paren-mode t)
 
 (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
 (add-to-list 'auto-mode-alist '("\\.pl\\'" . prolog-mode))
 
 (unless window-system
   (xterm-mouse-mode t)
-  (global-set-key [mouse-2] 'clipboard-yank))
+  (global-set-key [mouse-2] 'clipboard-yank)
+  (global-set-key [mouse-4] '(lambda ()
+                               (interactive)
+                               (scroll-down 1)))
+  (global-set-key [mouse-5] '(lambda ()
+                               (interactive)
+                               (scroll-up 1))))