From c0810b3bf27f6bc9e1359aa1422d285dc8168985 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 28 Mar 2021 19:30:41 +0200 Subject: Emacs: make underscore part of word in c-like modes --- user/emacs/init.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'user/emacs') 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) -- cgit 1.4.1