I'm using auctex, and trying to make underscores count as part of a word. There are numerous answers to this question, and I've tried the following
(modify-syntax-entry ?_ "w")
(modify-syntax-entry ?_ "w" latex-mode-syntax-table)
(modify-syntax-entry ?_ "w" LaTeX-mode-syntax-table)
(modify-syntax-entry ?_ "w" tex-mode-syntax-table)
(modify-syntax-entry ?_ "w" TeX-mode-syntax-table)
this works for any other mode, but not for my auctex files. I'm not even sure which is the correct syntax table (for example C-h m
tells me that I'm in LaTeX/FMP mode, but there is no syntax table called LaTeX/FMP). Any ideas how to proceed?
Using emacs 25.1.1, auctex version 11.90.0.
(add-hook 'TeX-mode-hook (lambda () (modify-syntax-entry ?_ "w")))
? – Name Feb 02 '18 at 15:36superword-mode
? – Stefan Feb 02 '18 at 16:17superword-mode
, if you want to post this as an answer I will accept it; it seems to be doing pretty much exactly what I want. – funklute Feb 02 '18 at 16:24