I'd like to completely disable my mouse in Spacemacs. Following the advice in this answer, I set up the following in my .spacemacs file as
(defun dotspacemacs/user-config () "Configuration function for user code. This function is called at the very end of Spacemacs initialization after layers configuration. You are free to put any user code." ;;(add-hook 'after-change-major-mode-hook 'fci-mode) (add-hook 'change-major-mode-after-body-hook 'fci-mode) (neotree-show) (with-eval-after-load FILE ;; don't jump the cursor around in the window on clicking (define-key evil-motion-state-map [down-mouse-1] 'silence) ;; also avoid any '<mouse-1> is undefined' when setting to 'undefined (define-key evil-motion-state-map [mouse-1] 'silence) ) )
I see this in the Help menu that
FILE is normally a feature name, but it can also be a file name, in case that file does not provide any feature.
But I'm not sure what value I should use here.
evil-motion-state-map. You can probably find out with the help of
C-h v. At the end of that file, there will most likely be a line
(provide 'FEATURE). That feature name is what you should use. (Why am I not making this an answer? Because I am not really answering the question; I am only pointing the way to the answer.)
evil-motion-state-map is a variable defined in 'evil-states.el'.However if I change
evil-states.eland reload my dotfile, I can still use click with the mouse