From 4a73b15503de4a8f8f40b7d313459c2406e087b4 Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Sat, 3 Feb 2018 18:00:35 -0700 Subject: [PATCH] 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. --- doc/FAQ.org | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/FAQ.org b/doc/FAQ.org index 7e3895a5a..cb962b755 100644 --- a/doc/FAQ.org +++ b/doc/FAQ.org @@ -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=?