summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 21b82342..89ede8e4 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -297,6 +297,10 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
   (:states '(normal motion)
            "g s" #'evil-avy-goto-symbol-1))
 
+(add-hook 'c-mode-common-hook
+          ; make b/w/e include underscore as *part* of a word
+          (lambda () (modify-syntax-entry ?_ "w")))
+
 (use-package evil-anzu
   :defer 2
   :after evil)