Skip to content

Instantly share code, notes, and snippets.

@thinrhino
Last active August 29, 2015 14:13
Show Gist options
  • Save thinrhino/63ed5e1b03cee1caac40 to your computer and use it in GitHub Desktop.
Save thinrhino/63ed5e1b03cee1caac40 to your computer and use it in GitHub Desktop.
Enable mouse in emacs
;; Enable mouse support
(unless window-system
(require 'mouse)
(xterm-mouse-mode t)
(global-set-key [mouse-4] '(lambda ()
(interactive)
(scroll-down 1)))
(global-set-key [mouse-5] '(lambda ()
(interactive)
(scroll-up 1)))
(defun track-mouse (e))
(setq mouse-sel-mode t)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment