I have the following definition in my init.el
:
(define-key evil-motion-state-map (kbd "SPC j") #'evilem-motion-next-line)
This works if I want to do dSPCj, but I'd like to be able to do SPCdj as well. (Here, SPC is meant to take the place of the prefix argument or "count", which can come in either location. see evil-easymotion for a description of its behavior).
The naive solution
(define-key evil-normal-state-map (kbd "SPC d") (kbd "d SPC"))
Does not work for the same reason described in Emacs bind key to prefix. The solution to that question doesn't work for me because there is no prefix command to bind to, as all commands are hidden behind evil-delete
.
Is there any way to accomplish this?