[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-lisp-state 4167ee0b21 015/125: Add `RET` key binding
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-lisp-state 4167ee0b21 015/125: Add `RET` key binding for sp-newline |
Date: |
Thu, 6 Jan 2022 04:58:38 -0500 (EST) |
branch: elpa/evil-lisp-state
commit 4167ee0b2151b6595c40d834fb628f7e8b47a9eb
Author: sbenner <sylvain.benner@gmail.com>
Commit: sbenner <sylvain.benner@gmail.com>
Add `RET` key binding for sp-newline
---
README.md | 1 +
evil-lisp-state.el | 10 ++++++----
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 7301e0b7ac..9e0f79b1dd 100644
--- a/README.md
+++ b/README.md
@@ -61,6 +61,7 @@ Key Binding | Function
`sl` | sp-forward-slurp-sexp
`sx` | sp-splice-sexp
`u` | undo-tree-undo
+`RET` | sp-newline
`ESC` | evil-normal-state
## Thanks
diff --git a/evil-lisp-state.el b/evil-lisp-state.el
index a315488cf8..df5c8a0186 100644
--- a/evil-lisp-state.el
+++ b/evil-lisp-state.el
@@ -84,14 +84,16 @@
(define-key evil-lisp-state-map "l" 'sp-forward-sexp)
(define-key evil-lisp-state-map "r" 'sp-raise-sexp)
(define-key evil-lisp-state-map "C-r" 'undo-tree-redo)
-(define-key evil-lisp-state-map "ska" 'sp-splice-sexp-killing-around)
-(define-key evil-lisp-state-map "skh" 'sp-splice-sexp-killing-backward)
-(define-key evil-lisp-state-map "skl" 'sp-splice-sexp-killing-forward)
+(define-key evil-lisp-state-map "ska" 'sp-splice-sexp-killing-around)
+(define-key evil-lisp-state-map "skh" 'sp-splice-sexp-killing-backward)
+(define-key evil-lisp-state-map "skl" 'sp-splice-sexp-killing-forward)
(define-key evil-lisp-state-map "sh" 'sp-backward-slurp-sexp)
(define-key evil-lisp-state-map "sl" 'sp-forward-slurp-sexp)
(define-key evil-lisp-state-map "sx" 'sp-splice-sexp)
(define-key evil-lisp-state-map "u" 'undo-tree-undo)
-(define-key evil-lisp-state-map [escape] 'evil-normal-state)
+
+(define-key evil-lisp-state-map (kbd "RET") 'sp-newline)
+(define-key evil-lisp-state-map [escape] 'evil-normal-state)
(defun evil-lisp-state-eval-sexp-end-of-line ()
"Evaluate the last sexp at the end of the current line."
- [nongnu] elpa/evil-lisp-state a44023b712 009/125: Change prefix for sp-splice-sexp-killing-xxx to `sk_`, (continued)
- [nongnu] elpa/evil-lisp-state a44023b712 009/125: Change prefix for sp-splice-sexp-killing-xxx to `sk_`, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 9dfc5fe116 002/125: Update gitignore, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 9be14079e5 004/125: Update readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 7b5937a327 005/125: Shorten package description, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 729c131ecc 012/125: Better consistency with `sx` for sp-splice-sexp, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state f9fad45551 011/125: Add key bindings for sp-kill-sexp functions, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 9afc34bd94 016/125: Add yank/past on `y` and `p`, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 95204dcf71 018/125: Add key bindings for wrapping functions and symbol navigation, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 0174f825a0 023/125: Update readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 2ad7ffac3e 010/125: Update key bindings in readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 4167ee0b21 015/125: Add `RET` key binding for sp-newline,
ELPA Syncer <=
- [nongnu] elpa/evil-lisp-state 797f09bfbb 013/125: Update readme with last key bindings, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state cbe505d26d 014/125: Add sp-comment key binding `C`, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 3a0230162e 019/125: Add key binding for sp-absorb-sexp `a`, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state b4a1371a01 020/125: Add key bindings for transpose functions, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state af7ce842d1 024/125: Add fine grain forward and backward motion with evil standard, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state eefaabc310 027/125: Add installation instruction for MELPA and Cask in readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 563654c8cd 040/125: Swap back `k` and `K`, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state d2fe2754c7 044/125: Add disclaimer about experimentation in readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 5569669299 049/125: Add `gs` key binding for elisp-slime-nav-find-elisp-thing-at-point, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state c6131e28e0 056/125: New navigation model leading to version 2.0, ELPA Syncer, 2022/01/06