General solution for underscores in word-motions

c.f. https://github.com/syl20bnr/spacemacs/issues/1261 

I am currently going between many programming languages and the current solution falls short for me. The 'prog-mode-hook seems to work pretty well.
This commit is contained in:
Jaremy Creechley 2018-02-03 18:00:35 -07:00 committed by Codruț Constantin Gușoi
parent 505c500418
commit 4a73b15503
1 changed files with 2 additions and 0 deletions

View File

@ -371,6 +371,8 @@ include this on your =dotspacemacs/user-config=.
(add-hook 'ruby-mode-hook #'(lambda () (modify-syntax-entry ?_ "w")))
;; For Javascript
(add-hook 'js2-mode-hook #'(lambda () (modify-syntax-entry ?_ "w")))
;; For all programming modes
(add-hook 'prog-mode-hook #'(lambda () (modify-syntax-entry ?_ "w")))
#+END_SRC
** Setup =$PATH=?