Recipe to make mouse clicks work in xterm/iTerm.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 10 Dec 2015 15:49:16 +0200
changeset 1313 ec0316f8e223
parent 1312 7c7a0f0e370e
child 1314 54572ca2b27d
Recipe to make mouse clicks work in xterm/iTerm.
.emacs-obsolete
--- a/.emacs-obsolete	Thu Dec 10 15:46:08 2015 +0200
+++ b/.emacs-obsolete	Thu Dec 10 15:49:16 2015 +0200
@@ -84,3 +84,10 @@
    `(
      ;; 64 times, for highlight C-u C-u C-u <key>
      ("\\([^[:space:]]\\)\\1\\{63\\}" 0 'my-contrasty-face t) )) )
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; Make mouse clicks work in xterm (and iTerm).
+
+(when (not (window-system))
+  (xterm-mouse-mode +1))
+