Spacemacs - Smarter evil word behavior
This commit is contained in:
@@ -186,12 +186,8 @@ before layers configuration."
|
|||||||
"Configuration function.
|
"Configuration function.
|
||||||
This function is called at the very end of Spacemacs initialization after
|
This function is called at the very end of Spacemacs initialization after
|
||||||
layers configuration."
|
layers configuration."
|
||||||
(defadvice evil-inner-word (around underscore-as-word activate)
|
(with-eval-after-load 'evil
|
||||||
(let ((table (copy-syntax-table (syntax-table))))
|
(defalias #'forward-evil-word #'forward-evil-symbol))
|
||||||
(modify-syntax-entry ?_ "w" table)
|
|
||||||
(modify-syntax-entry ?- "w" table)
|
|
||||||
(with-syntax-table table
|
|
||||||
ad-do-it)))
|
|
||||||
|
|
||||||
(evil-set-initial-state 'term-mode 'emacs)
|
(evil-set-initial-state 'term-mode 'emacs)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user