Fork me on GitHub
#spacemacs
<
2020-01-09
>
johanatan18:01:18

hi, does anybody know why the following code config would cause the w (advance-word) command to get stuck on the ends of lines which have a hyphenated token near the end?

johanatan18:01:23

(with-eval-after-load 'clojure-mode
    (dolist (c (string-to-list ":_-?!#*"))
      (modify-syntax-entry c "w" clojure-mode-syntax-table)))

johanatan18:01:33

this code worked for me for several years, then suddenly stopped working.

johanatan18:01:47

i asked about it on here and someone copied it into their config and said it worked fine for them

johanatan18:01:13

so then i decided to reinstall emacs and spacemacs from scratch and to copy this config change and only this config change and try it again

johanatan18:01:34

but even after that, it suffers the "hyphenated word near end of line (and a couple of other obscure cases) problem"