branch: elpa/evil-lisp-state
commit dbc6ae05b5445805d8fd10a590891f3913bbade7
Author: syl20bnr <[email protected]>
Commit: syl20bnr <[email protected]>
Add evil-open-above with binding `O`
---
README.md | 5 +++--
evil-lisp-state.el | 1 +
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 0e5d8d5784..535c9ea1db 100644
--- a/README.md
+++ b/README.md
@@ -113,7 +113,8 @@ Key Binding | Function
`l` | sp-forward-symbol
`L` | sp-forward-sexp
`m` | sp-join-sexp (think about `merge-sexp`)
-`o` | switch to `insert state` and add a new line below
+`o` | sp-newline and switch to `insert state`
+`O` | evil-open-above
`p` | evil-past-after
`P` | evil-past-before
`r` | sp-raise-sexp
@@ -134,7 +135,7 @@ Key Binding | Function
`X` | sp-backward-delete-char
`y` | sp-copy-sexp
`ny` | sp-backward-copy-sexp
-`RET` | sp-newline
+`RET` | sp-newline (stay in `lisp state` see `o` to switch to `insert
state`)
`ESC` | evil-normal-state
## Thanks
diff --git a/evil-lisp-state.el b/evil-lisp-state.el
index 6c5787b987..2a084bf8ea 100644
--- a/evil-lisp-state.el
+++ b/evil-lisp-state.el
@@ -119,6 +119,7 @@ of COMMAND.
(define-key evil-lisp-state-map "L" 'sp-forward-sexp)
(define-key evil-lisp-state-map "m" 'sp-join-sexp)
(define-key evil-lisp-state-map "o" 'evil-lisp-state-insert-below)
+(define-key evil-lisp-state-map "O" 'evil-open-above)
(define-key evil-lisp-state-map "p" 'evil-paste-after)
(define-key evil-lisp-state-map "P" 'evil-paste-before)
(define-key evil-lisp-state-map "r" 'sp-raise-sexp)