If I load up emacs and go to my .emacs file (a fragment of which is given below), and I press SPC f or C-c C-f then it does find-file, which is the expected behaviour. However, if I type M-x eval-buffer, or load-file, suddenly SPC f doesn't work, but C-c C-f still does. If I press SPC, it just goes to the next character as it would without evil-leader. What gives?
(require 'evil)
(evil-mode 1)
(require 'evil-leader)
(global-evil-leader-mode)
(evil-leader/set-leader "<SPC>")
(evil-leader/set-key "f" 'find-file)
(x-posted from superuser.com)
eval-buffer
andload-file
and they both have the same effect. Perhaps it has something to do with my setup somehow?init
file, but I don't know what to suggest. When working with evil-mode, I've had problems redefining keys in theevil-normal-state
map. But it's bizarre that simply re-evaluating theinit
file results in different behaviour.