Saturday, August 16, 2014

Clojure friendly word definitions in Emacs

Want Emacs to treat some-symbol as a single word for editing? I do! And here is how:
Add to your init.el

(dolist (c (string-to-list ":_-?!#*"))
  (modify-syntax-entry c "w" emacs-lisp-mode-syntax-table))

This works great with evil-mode (vim style) delete word (dw) and change word (cw) shortcuts.