string-inflection: transient state for cycling

This commit is contained in:
Eivind Fonn 2017-06-10 16:31:05 +02:00
parent c366991422
commit 2db9958894
2 changed files with 7 additions and 2 deletions

View File

@ -2704,7 +2704,7 @@ Text related commands (start with ~x~):
| ~SPC x g l~ | set languages used by translate commands |
| ~SPC x g t~ | translate current word using Google Translate |
| ~SPC x g T~ | reverse source and target languages |
| ~SPC x i i~ | cycle symbol naming styles |
| ~SPC x i i~ | cycle symbol naming styles (~i~ to keep cycling) |
| ~SPC x i u~ | change symbol style to ~under_score~ |
| ~SPC x i _~ | change symbol style to ~under_score~ |
| ~SPC x i U~ | change symbol style to ~UP_CASE~ |

View File

@ -362,8 +362,13 @@
(use-package string-inflection
:init
(progn
(spacemacs|define-transient-state string-inflection
:title "String inflection transient state"
:doc "\n [_i_] cycle"
:bindings
("i" string-inflection-all-cycle))
(spacemacs/set-leader-keys
"xii" 'string-inflection-all-cycle
"xii" 'spacemacs/string-inflection-transient-state/body
"xiu" 'string-inflection-underscore
"xi_" 'string-inflection-underscore
"xiU" 'string-inflection-upcase