[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-lisp-state 0ddcc908e8 084/125: `RET` is for indent ne
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-lisp-state 0ddcc908e8 084/125: `RET` is for indent next line |
Date: |
Thu, 6 Jan 2022 04:58:43 -0500 (EST) |
branch: elpa/evil-lisp-state
commit 0ddcc908e847ca1f371a2023f6e83cdd846aec5c
Author: syl20bnr <sylvain.benner@gmail.com>
Commit: syl20bnr <sylvain.benner@gmail.com>
`RET` is for indent next line
---
README.md | 3 ++-
evil-lisp-state.el | 8 +++++++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index a3f5e29a6e..2c8b32e15c 100644
--- a/README.md
+++ b/README.md
@@ -111,6 +111,7 @@ Key Binding | Function
`d` | evil-delete
`h` | next char
`i` | evil-insert-state
+`I` | evil-insert-line
`j` | next visual line
`k` | previous visual line
`l` | next char
@@ -171,7 +172,7 @@ Key Binding | Function
`<tab> y` | sp-backward-copy-sexp
`backspace` | sp-backward-delete-char
`S-backspace` | sp-delete-char
-`RET` | sp-newline (stay in `lisp state` see `o` to switch to `insert
state`)
+`RET` | indent next line
## Thanks
diff --git a/evil-lisp-state.el b/evil-lisp-state.el
index 37b2e99d46..e833241489 100644
--- a/evil-lisp-state.el
+++ b/evil-lisp-state.el
@@ -171,7 +171,7 @@ of COMMAND.
(evil-lisp-state-define-key "Y" copy-sexp t)
(define-key evil-lisp-state-map (kbd "<backspace>") 'sp-backward-delete-char)
(define-key evil-lisp-state-map (kbd "<S-backspace>") 'sp-delete-char)
-(define-key evil-lisp-state-map (kbd "RET") 'sp-newline)
+(define-key evil-lisp-state-map (kbd "RET") 'evil-lisp-state-indent-next-line)
(defun evil-lisp-state-eval-sexp-end-of-line ()
"Evaluate the last sexp at the end of the current line."
@@ -228,4 +228,10 @@ of COMMAND.
(sp-insert-pair "(")
(indent-for-tab-command)))
+(defun evil-lisp-state-indent-next-line ()
+ "Indent line and go the next visual line."
+ (interactive)
+ (join-line 1)
+ (sp-newline))
+
(provide 'evil-lisp-state)
- [nongnu] elpa/evil-lisp-state ca32c94dce 067/125: Update commentary, (continued)
- [nongnu] elpa/evil-lisp-state ca32c94dce 067/125: Update commentary, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 1a0efed5c2 068/125: Set back to t the variable sp-navigate-consider-symbols, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 48b8c735ed 008/125: Fix configuration example in package commentary, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state c63d601878 025/125: Import evil-motion-state, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 8df5c30ccb 026/125: Update README.md, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 33ce3bb4f5 065/125: Tweak navigation model to make it ever simpler, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state bce255c48e 066/125: Minor change to readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 67ee83c135 074/125: Regular `y` evil command and sp-copy-sexp binding is now `Y`, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 84ec92a0e6 075/125: Version 3.3, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 4a9071e1ea 076/125: Indicate the regular evil bindings, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 0ddcc908e8 084/125: `RET` is for indent next line,
ELPA Syncer <=
- [nongnu] elpa/evil-lisp-state 5f663075fa 085/125: Better insert sexp after/before, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 1607fe335a 091/125: Fix macro byte compilation, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 014a5a5638 098/125: Replace lambda by defuns, change some bindings, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state dbb7033cc9 107/125: Update documentation, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 9f10498f6d 108/125: Add key bindings for hybrid functions, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state df3f2e1a3c 111/125: Fix confusing message in toggle state func, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 36e74307b5 083/125: Add `I` evil key binding, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 81ffba2855 086/125: Version 4.1, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state fdddd81806 096/125: Rethink all the key-bindings to be used with evil-leader, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 8a3cffa60b 100/125: Add 0 and $ key bindings, ELPA Syncer, 2022/01/06