1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-24 04:22:50 -05:00

Add evil subword

This commit is contained in:
Jack Foltz 2019-02-10 14:57:08 -05:00
parent e8638eb431
commit beb3b3cb15
No known key found for this signature in database
GPG Key ID: E7B502AB1576E6CD

View File

@ -231,6 +231,19 @@ An enhanced version of =f= in Vim.
"C-f" 'avy-goto-char-in-line "C-f" 'avy-goto-char-in-line
"C-F" 'avy-goto-char)) "C-F" 'avy-goto-char))
#+END_SRC #+END_SRC
*** Subword
Make boundaries between words in camelCase act as separate words for evil motions.
#+BEGIN_SRC emacs-lisp
(use-package subword
:init
(define-category ?U "Uppercase")
(define-category ?u "Lowercase")
(modify-category-entry (cons ?A ?Z) ?U)
(modify-category-entry (cons ?a ?z) ?u)
:config
(push '(?u . ?U) evil-cjk-word-separating-categories))
#+END_SRC
*** evil-surround *** evil-surround
Use =S= and a delimiter to surround in visual mode. Use =S= and a delimiter to surround in visual mode.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp