[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-lisp-state 692507643f 064/125: Fix `o` and `O` behavi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-lisp-state 692507643f 064/125: Fix `o` and `O` behavior |
Date: |
Thu, 6 Jan 2022 04:58:41 -0500 (EST) |
branch: elpa/evil-lisp-state
commit 692507643f63d151145d7de302e193ba2af659ab
Author: syl20bnr <sylvain.benner@gmail.com>
Commit: syl20bnr <sylvain.benner@gmail.com>
Fix `o` and `O` behavior
---
evil-lisp-state.el | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/evil-lisp-state.el b/evil-lisp-state.el
index 3aff484d31..f7d6c423f0 100644
--- a/evil-lisp-state.el
+++ b/evil-lisp-state.el
@@ -189,18 +189,22 @@ of COMMAND.
(defun evil-lisp-state-insert-sexp-after ()
"Insert sexp after the current one."
(interactive)
+ (if (char-equal (char-after) ?\() (evil-lisp-state-forward-symbol))
(sp-up-sexp)
(evil-insert-state)
- (insert " ")
+ (sp-newline)
(sp-insert-pair "("))
(defun evil-lisp-state-insert-sexp-before ()
"Insert sexp before the current one."
(interactive)
- (sp-backward-up-sexp)
+ (if (char-equal (char-after) ?\() (evil-lisp-state-forward-symbol))
+ (sp-backward-sexp)
(evil-insert-state)
- (insert " ")
- (backward-char 1)
- (sp-insert-pair "("))
+ (sp-newline)
+ (evil-previous-visual-line)
+ (evil-end-of-line)
+ (sp-insert-pair "(")
+ (indent-for-tab-command))
(provide 'evil-lisp-state)
- [nongnu] elpa/evil-lisp-state 8d5f719c98 028/125: Typo in readme, (continued)
- [nongnu] elpa/evil-lisp-state 8d5f719c98 028/125: Typo in readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 75f8f30e42 030/125: Use directions for copy, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 95d764e6a5 033/125: Swap `k` and `K` for a more natural feeling, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 7c9c56adb8 034/125: Set sp-navigate-consider-symbols to nil, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 2638f02edd 037/125: Set sp-navigate-reindent-after-up to nil, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 24b9a1dfb6 038/125: Add sp-(backward)-delete-char bindings to `x` and `X`, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 47c4f4ca30 043/125: Swap `H` and `h`, `L` and `l`, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 3ab17e7007 046/125: Version 1.5, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 0a5381ce70 055/125: Update readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state cf8c984612 057/125: Minor change, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 692507643f 064/125: Fix `o` and `O` behavior,
ELPA Syncer <=
- [nongnu] elpa/evil-lisp-state 3f575dc466 081/125: Update commentary and fix some typos, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 0476f83b72 089/125: Update address of MELPA, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 758166a1a4 092/125: Fix macro for backward functions, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 159e849c2c 102/125: Tweak key bindings, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 63e3183d14 101/125: Disabel auto-switch to lisp state for some commands, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 77bc863b7c 113/125: Fix default value for evil-lisp-state-enter-lisp-state-on-command, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 9d07f9efad 116/125: Reapply fix of confusion message when toggling state, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 12f974b74d 124/125: Allow navigation for braces and brackets with j/k., ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state b4c54ee3a0 122/125: Bump version to 8.1, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 3c65fecd99 125/125: Bump version to 8.2, ELPA Syncer, 2022/01/06