Closed marktran closed 11 years ago
It seems to be related to this block in evil-integration.el:
(eval-after-load 'dired
'(progn
;; use the standard Dired bindings as a base
(evil-make-overriding-map dired-mode-map 'normal t)
(evil-add-hjkl-bindings dired-mode-map 'normal
"J" 'dired-goto-file ; "j"
"K" 'dired-do-kill-lines ; "k"
"r" 'dired-do-redisplay ; "l"
";" (lookup-key dired-mode-map ":")))) ; ":d", ":v", ":s", ":e"
but why does it work for ,
and not SPC
?
Ah, I see. Setting this before evil is required works:
;; set SPC to nil before evil makes dired-mode-map the overriding-map
(require 'dired)
(define-key dired-mode-map (kbd "SPC") nil)
If I
(setq evil-leader/leader "SPC")
, it doesn't seem to work in Dired but works as expected everywhere else (I have it enabled globally). Setting it to something else, e.g.,
seems to work fine.I tried unsetting
SPC
with:but it seems that evil-mode is somehow preventing modifications to that mode map.
Any idea how I can get this to work?