diff --git a/users/crumb/programs/emacs/modules/syd-evil.el b/users/crumb/programs/emacs/modules/syd-evil.el index d316f5b..687fdee 100644 --- a/users/crumb/programs/emacs/modules/syd-evil.el +++ b/users/crumb/programs/emacs/modules/syd-evil.el @@ -135,4 +135,12 @@ (evil-snipe-repeat-scope 'visible) (evil-snipe-char-fold t))) +;; Evil's default behaviour for '#'/'*' in visual state will remain in visual +;; mode, and jump to the next occurence of the symbol under point. That is, the +;; movement is exactly the same as it is in normal state; if the region is over +;; the text `two words`, but the point is over `two`, Evil will search for +;; `two`. `evil-visualstar' will instead search for `two words`. +(use-package evil-visualstar + :hook (on-first-input . global-evil-visualstar-mode)) + (provide 'syd-evil)