I'd like Emacs to treat this
as one word. So I evaluated this line
(modify-syntax-entry ?$ "w")
to have Emacs treat dollar sign as a word constituent rather than a symbol. However, when I run forward-word from the beginning of the line below, it stops at the dollar sign when I'd like it to stop at the "n" instead.
How can I define dollar sign as a word constituent and have forward-word ignore it just like when it sees alphabet?