[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-lisp-state 0f6eefcb3e 045/125: Add `o` command to ins
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-lisp-state 0f6eefcb3e 045/125: Add `o` command to insert a new sexp at point on a new line below |
Date: |
Thu, 6 Jan 2022 04:58:40 -0500 (EST) |
branch: elpa/evil-lisp-state
commit 0f6eefcb3e1c13b7fec39e24952ed87d968fc890
Author: syl20bnr <sylvain.benner@gmail.com>
Commit: syl20bnr <sylvain.benner@gmail.com>
Add `o` command to insert a new sexp at point on a new line below
---
README.md | 1 +
evil-lisp-state.el | 7 +++++++
2 files changed, 8 insertions(+)
diff --git a/README.md b/README.md
index f4796b31b6..8807852343 100644
--- a/README.md
+++ b/README.md
@@ -110,6 +110,7 @@ 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
`p` | evil-past-after
`P` | evil-past-before
`r` | sp-raise-sexp
diff --git a/evil-lisp-state.el b/evil-lisp-state.el
index e5377d6947..3781fdd17b 100644
--- a/evil-lisp-state.el
+++ b/evil-lisp-state.el
@@ -115,6 +115,7 @@ of COMMAND.
(define-key evil-lisp-state-map "l" 'sp-forward-symbol)
(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 "p" 'evil-paste-after)
(define-key evil-lisp-state-map "P" 'evil-paste-before)
(define-key evil-lisp-state-map "r" 'sp-raise-sexp)
@@ -142,4 +143,10 @@ of COMMAND.
(evil-end-of-line)
(eval-last-sexp nil)))
+(defun evil-lisp-state-insert-below ()
+ "Mimic `o' command for lisp state."
+ (interactive)
+ (evil-insert-state)
+ (sp-newline))
+
(provide 'evil-lisp-state)
- [nongnu] elpa/evil-lisp-state d2fe2754c7 044/125: Add disclaimer about experimentation in readme, (continued)
- [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
- [nongnu] elpa/evil-lisp-state 90c8a95714 061/125: Add `%` key binding documentation in readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 46fbe7ade7 069/125: Keep `a` for evil-append, absorb-sexp is now on `A`, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 176ebd50e8 062/125: Change key binding `xs` to `xx` for consistency, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 3a72893879 031/125: New common backward prefix, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 37533c6d13 032/125: Type in readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 769d43ab36 036/125: Add forward/backward symbol binding to `L` and `H` respectively, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 7b1d98bf75 041/125: Version 1.3, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 0f6eefcb3e 045/125: Add `o` command to insert a new sexp at point on a new line below,
ELPA Syncer <=
- [nongnu] elpa/evil-lisp-state 77b8cc7bd8 050/125: Add key binding `(` which switches to insert state and insert `(`, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state dbc6ae05b5 051/125: Add evil-open-above with binding `O`, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state f387d10375 054/125: `L` bindings no go to the beginning of the next sexp at the same level, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 29a85e9948 059/125: Minor change in readme, ELPA Syncer, 2022/01/06
- [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