From c492c8f4bf3798f2de759bfc5a1f3b5363ee218e Mon Sep 17 00:00:00 2001 From: William Carroll Date: Wed, 3 Apr 2019 17:20:33 +0100 Subject: [PATCH] Update regexp used with evil-mode's * and # KBDs I'd bet that there is a better way to achieve this, but I couldn't find it, and I need this experience to be better. --- .../emacs/.emacs.d/wpc/packages/wpc-keybindings.el | 9 +++++++++ 1 file changed, 9 insertions(+) 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 9c04a1415..2d67a72a5 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