I want to have Spacemacs wrap around long lines, but only in text files (i.e. text mode), not in programming language files (i.e. program mode).
How could one achieve that? I know that to turn on line-wrapping one could simply include this in the user-config:
To turn it on only for text files, I tried:
(add-hook 'text-mode-hook 'toggle-word-wrap)
But it did not work. How could I implement that?