Fork me on GitHub
#spacemacs
<
2015-12-30
>
erik_price18:12:36

Is there a way to configure the evil mode so that e moves to the end of the current symbol, not just to the character before the next hyphen?

erik_price18:12:57

In other words, if the | character is the cursor, I want e to move the cursor from the middle of the xxxxx part of the word to the last z in

(xx|xxx-yyy-zzzz)

erik_price18:12:45

(`E` isn’t what I want, because it goes all the way to the closing paren character.)

akiva20:12:27

Just did a little digging around and maybe sp-forward-symbol (M-F) from smartparens might be what you’re looking for. You could remap e to that.

erik_price20:12:38

thanks akiva … I meant to update this channel with the solution I’m using now:

erik_price20:12:12

add this anywhere in .spacemacs and restart emacs:

(add-hook 'clojure-mode-hook #'(lambda () (modify-syntax-entry ?- "w")))

erik_price20:12:34

It changes clojure-mode so that hyphens are treated as part of a word

akiva20:12:54

Ah, excellent solution.