[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-lisp-state c0b43aa30e 087/125: Add `Shift-Return` to
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-lisp-state c0b43aa30e 087/125: Add `Shift-Return` to insert new line and switch to insert state |
Date: |
Thu, 6 Jan 2022 04:58:43 -0500 (EST) |
branch: elpa/evil-lisp-state
commit c0b43aa30e094bfcb612834ca4165901387ff73e
Author: syl20bnr <sylvain.benner@gmail.com>
Commit: syl20bnr <sylvain.benner@gmail.com>
Add `Shift-Return` to insert new line and switch to insert state
---
README.md | 1 +
evil-lisp-state.el | 7 +++++++
2 files changed, 8 insertions(+)
diff --git a/README.md b/README.md
index 2c8b32e15c..d950905acc 100644
--- a/README.md
+++ b/README.md
@@ -173,6 +173,7 @@ Key Binding | Function
`backspace` | sp-backward-delete-char
`S-backspace` | sp-delete-char
`RET` | indent next line
+`S-RET` | insert new line char and switch to `insert state`
## Thanks
diff --git a/evil-lisp-state.el b/evil-lisp-state.el
index 2f4273aa5a..66dc4a2c2b 100644
--- a/evil-lisp-state.el
+++ b/evil-lisp-state.el
@@ -172,6 +172,7 @@ of COMMAND.
(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") 'evil-lisp-state-indent-next-line)
+(define-key evil-lisp-state-map (kbd "<S-return>")
'evil-lisp-state-new-line-insert-state)
(defun evil-lisp-state-eval-sexp-end-of-line ()
"Evaluate the last sexp at the end of the current line."
@@ -235,4 +236,10 @@ of COMMAND.
(join-line 1)
(sp-newline))
+(defun evil-lisp-state-new-line-insert-state ()
+ "Insert new line char and switch to insert mode."
+ (interactive)
+ (sp-newline)
+ (evil-insert-state))
+
(provide 'evil-lisp-state)
- [nongnu] elpa/evil-lisp-state d2abdb86a2 118/125: Fix some minor issues with bind-map, (continued)
- [nongnu] elpa/evil-lisp-state d2abdb86a2 118/125: Fix some minor issues with bind-map, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state f6923427e9 121/125: Add variable evil-lisp-state-default-state, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state fb15814e55 017/125: Add key binding for sp-join-sexp `m` (think `merge-sexp), ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 2d13c56e14 042/125: Add expand-region dependency, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 872d59ebaf 058/125: Better formating for readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state d055246db1 060/125: Add synonyms for navigation commands in readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state df979a68a5 070/125: Wrap and unwrap are now on `w` and `W` respectively, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 483e20ff97 073/125: Regular evil `o` and `O` command, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state e1cf52572a 077/125: Remove expand-region dependency, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 383de2fdd3 082/125: Remove warning in readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state c0b43aa30e 087/125: Add `Shift-Return` to insert new line and switch to insert state,
ELPA Syncer <=
- [nongnu] elpa/evil-lisp-state 7bd49350df 090/125: Change sp-absorb-sexp binding to `B`, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 575de5d980 093/125: Missing autoload on defcustom, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state cff8cfa8a1 095/125: Add MELPA badge, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 701fccf899 097/125: Minor README changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state fc34826f18 099/125: Default behavior for hjkl, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 96d21715bd 106/125: Fix typo, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 13fc1def92 112/125: Add variable evil-lisp-state-enter-lisp-state-on-command, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state ca3fe14475 115/125: Change switch to lisp state from <leader> , , to <leader> ., ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state f4da219005 120/125: Remove default key binding and inform user to explicity define one., ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 7499dc3bd3 039/125: Version 1.2, ELPA Syncer, 2022/01/06