I'm trying to tweak my emacs configuration to treat _
as a word character.
I've added (add-hook 'python-mode-hook #'(lambda () (modify-syntax-entry ?_ "w")))
to my .emacs
file, but it doesn't seem to work.
If I execute (modify-syntax-entry ?_ "w")
directly in the mini-buffer, then it starts working.
I'm guessing that one of my minor modes may be changing the syntax table back.
I'm relatively new to emacs. How do I go about tracking down the source of the problem?