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:
parent
505c500418
commit
4a73b15503
|
@ -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=?
|
||||
|
|
Loading…
Reference in New Issue