<div>Over the last few weeks I have been learning elisp and implementing hooks into slime-mode</div><div>so that vim bindings feel more natural there. Here is an example</div><div><br></div><div>(defun slime-repl-bol-insert ()</div>
<div> (interactive)</div><div> (slime-repl-bol)</div><div> (evil-insert 1)</div><div><br></div><div>Then I would add this too a slime-repl-mode-hook</div><div><br></div><div>(define-key evil-normal-state-map "I" 'slime-repl-bol-insert)</div>
<div><br></div><div>I'm attempting to make all commands such as I, 0, etc work to the start of the REPL prompt rather</div><div>than the beginning of the line. I think this has implications not only for repl/inferior modes but dired/term/eshell</div>
<div>modes as well.</div><div><br></div><div>I have two questions, is this general approach i'm taking reasonable - defining functions that overwrite the generic</div><div>bindings, and adding them in hooks to slime-mode/eshell-mode etc? the second question that I'm having a hard time</div>
<div>with involves making dd and yy work correctly, I have browsed the source and it seems they are implemented in</div><div>motions involving moving to the next line -> what would be a reasonable solution to get say dd to delete everything</div>
<div>on a line except the prompt, and yy to yank everything on a line except the prompt.</div><div><br></div><div>Thanks for the great work with evil-mode</div>