Search code examples
emacselisp

How can I disable the mouse in Emacs term modes?


I would like to disable the use of the mouse within Emacs's term mode. By this I mean that I want mouse clicks within the Emacs terminal window to have no effect; I want mouse clicks elsewhere to be unaffected.


Solution

  • You can use my disable-mouse package to do this easily, either locally in a particular mode such as term-mode, or globally throughout Emacs.