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.
This commit is contained in:
William Carroll 2019-04-03 17:20:33 +01:00
parent 4c1fbe01f6
commit c492c8f4bf

View file

@ -16,6 +16,15 @@
(setq evil-want-integration nil) (setq evil-want-integration nil)
(general-evil-setup) (general-evil-setup)
:config :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 (general-mmap
:keymaps 'override :keymaps 'override
"RET" #'evil-goto-line "RET" #'evil-goto-line