From beb3b3cb15e24183a7879b9e148f7735f5be2686 Mon Sep 17 00:00:00 2001 From: Jack Foltz Date: Sun, 10 Feb 2019 14:57:08 -0500 Subject: [PATCH] Add evil subword --- lain/.emacs.d/config.org | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lain/.emacs.d/config.org b/lain/.emacs.d/config.org index 93bf5fa..2ff4895 100644 --- a/lain/.emacs.d/config.org +++ b/lain/.emacs.d/config.org @@ -231,6 +231,19 @@ An enhanced version of =f= in Vim. "C-f" 'avy-goto-char-in-line "C-F" 'avy-goto-char)) #+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 Use =S= and a delimiter to surround in visual mode. #+BEGIN_SRC emacs-lisp