I am using emacs with evil, and
space is my leader key, however,
space is bind to
dired-mode. So, how can I unbind
space, so I can still use it as my leader key in
dired-mode, and how can I achive this in genral.el.
The only reason that space won't work as expected in dired is because
evil-integration.el sets up
dired-mode-map to override evil keybindings. You can prevent the file from loading, but alternatively, you can bind your space commands in general-override-mode-map. Then you won't need to unbind space for any minor mode even when using
evil-make-overriding-map. See my evil guide if you want more information.