branch: elpa/evil-lisp-state
commit ca3fe14475e4422c9c6a0ed7cce71f54ae454e36
Author: syl20bnr <[email protected]>
Commit: syl20bnr <[email protected]>
Change switch to lisp state from <leader> ,, to <leader> .
---
README.md | 3 ++-
evil-lisp-state.el | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 40046fb4d7..816aa31cc7 100644
--- a/README.md
+++ b/README.md
@@ -60,6 +60,7 @@ Examples:
Key Binding | Function
--------------------------|------------------------------------------------------------
+<kbd>\<leader\> .</kbd> | switch to `lisp state`
<kbd>\<leader\> %</kbd> | evil jump item
<kbd>\<leader\> :</kbd> | ex command
<kbd>\<leader\> (</kbd> | insert expression before (same level as current
one)
@@ -121,7 +122,7 @@ function `evil-lisp-state-leader`.
If you don't want commands to enter in `lisp state` by default set the variable
`evil-lisp-state-enter-lisp-state-on-command` to nil. Then use the
-<kbd>,,</kbd> to enter manually in `lisp state`
+<kbd><leader> .</kbd> to enter manually in `lisp state`
[evil-link]: https://gitorious.org/evil/pages/Home
[smartparens-link]: https://github.com/Fuco1/smartparens/wiki
diff --git a/evil-lisp-state.el b/evil-lisp-state.el
index aba79864ed..bc2540085f 100644
--- a/evil-lisp-state.el
+++ b/evil-lisp-state.el
@@ -44,6 +44,7 @@
;; Key Binding | Function
;; -------------|------------------------------------------------------------
+;; `leader .' | switch to `lisp state'
;; `leader %' | evil jump item
;; `leader :' | ex command
;; `leader (' | insert expression before (same level as current one)
@@ -104,7 +105,7 @@
;; If you don't want commands to enter in `lisp state' by default
;; set the variable `evil-lisp-state-enter-lisp-state-on-command'
-;; to nil. Then use the `,,' to enter manually in `lisp state'
+;; to nil. Then use the `.' to enter manually in `lisp state'
;;; Code:
@@ -179,7 +180,7 @@ If `evil-lisp-state-global' is non nil then this variable
has no effect."
;; escape
(define-key evil-lisp-state-map [escape] 'evil-normal-state)
;; toggle lisp state
-(define-key evil-lisp-state-map ",," 'lisp-state-toggle-lisp-state)
+(define-key evil-lisp-state-map "." 'lisp-state-toggle-lisp-state)
;; hjkl
(define-key evil-lisp-state-map "h" 'evil-backward-char)
(define-key evil-lisp-state-map "j" 'evil-next-visual-line)