Modify evil-lion config

- Adjust keys not to collide with evil-little-word
- Add documentation
This commit is contained in:
Eivind Fonn 2017-05-23 11:08:06 +02:00
parent 3661ac1937
commit 5290456304
2 changed files with 11 additions and 1 deletions

View File

@ -2689,6 +2689,8 @@ Text related commands (start with ~x~):
| ~SPC x a =~ | align region at = |
| ~SPC x a a~ | align region (or guessed section) using default rules |
| ~SPC x a c~ | align current indentation region using default rules |
| ~SPC x a l~ | left-align with evil-lion |
| ~SPC x a L~ | right-align with evil-lion |
| ~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 ¦ |

View File

@ -101,7 +101,15 @@
(defun spacemacs-evil/init-evil-lion ()
(use-package evil-lion
:init (evil-lion-mode)))
:init
(progn
;; Override the default keys, as they collide
(setq evil-lion-left-align-key nil
evil-lion-right-align-key nil)
(spacemacs/set-leader-keys
"xal" 'evil-lion-left
"xaL" 'evil-lion-right)
(evil-lion-mode))))
(defun spacemacs-evil/init-evil-lisp-state ()
(use-package evil-lisp-state