From 182ab918b610805567d38a3dd429f9ad7c736876 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 6 Apr 2019 11:11:53 -0400 Subject: [PATCH] Enable xterm-mouse-mode in tty Emacs --- core/core-os.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/core-os.el b/core/core-os.el index 52ce8ae7a..c84861c1d 100644 --- a/core/core-os.el +++ b/core/core-os.el @@ -17,6 +17,9 @@ (if (require 'xclip nil t) (xclip-mode)))) (add-hook 'tty-setup-hook #'doom|init-clipboard-in-tty-emacs) +;; Enable mouse in terminal Emacs +(add-hook 'tty-setup-hook #'xterm-mouse-mode) + ;; stop copying each visual state move to the clipboard: ;; https://bitbucket.org/lyro/evil/issue/336/osx-visual-state-copies-the-region-on ;; grokked from: http://stackoverflow.com/questions/15873346/elisp-rename-macro