[editing] Add missing documentation and make string-edit lazy load

This commit is contained in:
Maximilian Wolff 2021-02-28 21:54:52 +01:00
parent c6ffe996b6
commit c3b40ce13b
No known key found for this signature in database
GPG Key ID: 2DD07025BFDBD89A
2 changed files with 4 additions and 0 deletions

View File

@ -2990,10 +2990,12 @@ Text related commands (start with ~x~):
| ~SPC x a r~ | align region using user-specified regexp |
| ~SPC x a m~ | align region at arithmetic operators (+-*/) |
| ~SPC x a ¦~ | align region at ¦ |
| ~SPC x A~ | Open all visible links |
| ~SPC x c~ | count the number of chars/words/lines in the selection region |
| ~SPC x d l~ | delete blank lines but one or the single blank line |
| ~SPC x d w~ | delete trailing whitespaces |
| ~SPC x d SPC~ | Delete all spaces and tabs around point, leaving one space |
| ~SPC x e~ | Edit strings in place |
| ~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 |
@ -3030,6 +3032,7 @@ Text related commands (start with ~x~):
| ~SPC x w d~ | show dictionary entry of word from wordnik.com |
| ~SPC x w r~ | randomize words in region |
| ~SPC x y~ | use avy to copy a link in the frame |
| ~SPC x Y~ | use avy to copy multiple links in the frame |
*** Text insertion commands
Text insertion commands (start with ~i~):

View File

@ -482,6 +482,7 @@
(defun spacemacs-editing/init-string-edit ()
(use-package string-edit
:defer t
:init
(spacemacs/set-leader-keys "xe" 'string-edit-at-point)
(spacemacs/set-leader-keys-for-minor-mode 'string-edit-mode