diff options
Diffstat (limited to 'configs/shared/emacs/.emacs.d/wpc/packages/wpc-keybindings.el')
-rw-r--r-- | configs/shared/emacs/.emacs.d/wpc/packages/wpc-keybindings.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configs/shared/emacs/.emacs.d/wpc/packages/wpc-keybindings.el b/configs/shared/emacs/.emacs.d/wpc/packages/wpc-keybindings.el index 9c04a1415380..2d67a72a5647 100644 --- a/configs/shared/emacs/.emacs.d/wpc/packages/wpc-keybindings.el +++ b/configs/shared/emacs/.emacs.d/wpc/packages/wpc-keybindings.el @@ -16,6 +16,15 @@ (setq evil-want-integration nil) (general-evil-setup) :config + ;; ensure [_-] are part of \w character set + ;; Note: there must be a better way to accomplish this. + (progn + ;; underscore + (modify-syntax-entry ?_ "w" sh-mode-syntax-table) + + ;; dash + (modify-syntax-entry ?- "w" sh-mode-syntax-table) + (modify-syntax-entry ?- "w" emacs-lisp-mode-syntax-table)) (general-mmap :keymaps 'override "RET" #'evil-goto-line |