diff options
author | William Carroll <wpcarro@gmail.com> | 2021-11-08T17·27-0800 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-01-08T06·00+0000 |
commit | 33e3f2f66aff4f2dc33986559b0c0c4516118c91 (patch) | |
tree | 58c3d49298ffa594fc0700808c026ba847e3468b /users/wpcarro/emacs/.emacs.d/wpc/keybindings.el | |
parent | 89a5d93b24750fcf7ac2ac634c1c21428b21fa20 (diff) |
feat(wpcarro/emacs): Prefer Vim style of word-searching r/3558
In my opinion the following versions of compound words should be searched similarly... - `testingThisOut` (camel case) - `TestingThisOut` (class case) - `testing_this_out` (snake case) - `testing-this-out` (kebab case) ...but Emacs's default searching treats the snake and kebab cases differently, which makes it difficult to search for buffer-local occurrences of symbols in Python, Elisp (among other languages). This has been bothering me for some time. I must've attempted to fix this awhile ago by using `setq` (when I should've used `customize-set-variable`, which makes me wonder: how much of my configuration is flaky because I'm using `setq` where I should be using `customize-set-variable`? For more context about this change, see `describe-variable` for `evil-symbol-word-search`. Change-Id: Ie03f0da119f59e04abc5de3143aa6edaf6115168 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4804 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'users/wpcarro/emacs/.emacs.d/wpc/keybindings.el')
-rw-r--r-- | users/wpcarro/emacs/.emacs.d/wpc/keybindings.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/users/wpcarro/emacs/.emacs.d/wpc/keybindings.el b/users/wpcarro/emacs/.emacs.d/wpc/keybindings.el index d55c8f6258ab..2a2160741ed5 100644 --- a/users/wpcarro/emacs/.emacs.d/wpc/keybindings.el +++ b/users/wpcarro/emacs/.emacs.d/wpc/keybindings.el @@ -102,7 +102,7 @@ (general-unbind 'normal "s" "M-." "C-p" "C-n") (general-unbind 'insert "C-v" "C-d" "C-a" "C-e" "C-n" "C-p" "C-k") -(setq evil-symbol-word-search t) +(customize-set-variable 'evil-symbol-word-search t) (evil-mode 1) (evil-collection-init) (evil-commentary-mode) |