about summary refs log tree commit diff
path: root/configs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-04-03T16·20+0100
committerWilliam Carroll <wpcarro@gmail.com>2019-04-03T16·20+0100
commitc492c8f4bf3798f2de759bfc5a1f3b5363ee218e (patch)
tree88ac759d2b61624f1fb100122837c12d45999f5b /configs
parent4c1fbe01f64b18736e499c7600e6a0776c2c3436 (diff)
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.
Diffstat (limited to 'configs')
-rw-r--r--configs/shared/emacs/.emacs.d/wpc/packages/wpc-keybindings.el9
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