I have tried doing this which I found in another StackExchange post but it doesn't work for me, is there another way to disable the mouse in spacemacs completely, I use evil mode, thanks.

How to disable mouse in Spacemacs

  • Can you just use github.com/purcell/disable-mouse as an additional package?
    – Ryan
    Apr 11 '18 at 15:53
  • I have tried that. After installing disable-mouse the mouse was still being used by spacemacs. When I restarted spacemacs I saw a line stating: deleting disable-mouse. Mouse was still being used afterwards. @Ryan Apr 11 '18 at 17:33
  • add it to dotspacemacs-additional-packages and make sure you have (global-disable-mouse-mode) in your configuration.
    – Ryan
    Apr 11 '18 at 17:50
  • Where do I put (global-disable-mouse-mode), which file and what section? @Ryan Apr 11 '18 at 18:00

Add the following to your dotspacemacs-additional-packages:

dotspacemacs-additional-packages '(

And put the following in the dotspacemacs/user-config section of your .spacemacs file:


That should disable the mouse for everything in Emacs.

  • I tried that on two different machines, mouse still works :( Apr 11 '18 at 20:29
  • In the terminal (emacs -nw), I managed to do the trick by setting (xterm-mouse-mode -1) inside dotspacemacs/user-config.
    – Jir
    Sep 19 '18 at 16:02
  • @Ryan I have tried the above but mouse still works, something else must be missing or I'm doing something wrong. Oct 25 '18 at 16:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.