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 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 – Wawrzyniec Pruski Apr 11 at 17:33
  • add it to dotspacemacs-additional-packages and make sure you have (global-disable-mouse-mode) in your configuration. – Ryan Apr 11 at 17:50
  • Where do I put (global-disable-mouse-mode), which file and what section? @Ryan – Wawrzyniec Pruski Apr 11 at 18:00

Add the following to your dotspacemacs-additional-packages:

dotspacemacs-additional-packages '(
   disable-mouse
)

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

(global-disable-mouse-mode)

That should disable the mouse for everything in Emacs.

  • I tried that on two different machines, mouse still works :( – Wawrzyniec Pruski Apr 11 at 20:29

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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