[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-lisp-state 41b73ab51f 053/125: Fix insert of left par
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-lisp-state 41b73ab51f 053/125: Fix insert of left parenthesis |
Date: |
Thu, 6 Jan 2022 04:58:41 -0500 (EST) |
branch: elpa/evil-lisp-state
commit 41b73ab51f65241825e05aa923d6e522e6abeaaa
Author: syl20bnr <sylvain.benner@gmail.com>
Commit: syl20bnr <sylvain.benner@gmail.com>
Fix insert of left parenthesis
---
evil-lisp-state.el | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/evil-lisp-state.el b/evil-lisp-state.el
index f1e518dc5c..d040d1622a 100644
--- a/evil-lisp-state.el
+++ b/evil-lisp-state.el
@@ -5,7 +5,7 @@
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; Keywords: convenience editing evil smartparens lisp mnemonic
;; Created: 9 Oct 2014
-;; Version: 1.5.3
+;; Version: 1.5.4
;; Package-Requires: ((evil "1.0.9") (smartparens "1.6.1") (expand-region
"0.10.0"))
;; URL: https://github.com/syl20bnr/evil-lisp-state
@@ -83,7 +83,7 @@ of COMMAND.
(define-key evil-lisp-state-map bkey bcmdsym)))))
;; key bindings
-(define-key evil-lisp-state-map "(" (lambda () (interactive) (evil-insert
"(")))
+(define-key evil-lisp-state-map "(" 'evil-lisp-state-insert-left-paren)
(define-key evil-lisp-state-map "1" 'digit-argument)
(define-key evil-lisp-state-map "2" 'digit-argument)
(define-key evil-lisp-state-map "3" 'digit-argument)
@@ -147,6 +147,12 @@ of COMMAND.
(evil-end-of-line)
(eval-last-sexp nil)))
+(defun evil-lisp-state-insert-left-paren ()
+ "Switch to insert state and insert `('"
+ (interactive)
+ (evil-insert-state)
+ (sp-insert-pair "("))
+
(defun evil-lisp-state-insert-below ()
"Mimic `o' command for lisp state."
(interactive)
- [nongnu] elpa/evil-lisp-state cff8cfa8a1 095/125: Add MELPA badge, (continued)
- [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
- [nongnu] elpa/evil-lisp-state 6c41877161 047/125: Add evil-delete-line with key binding `D`, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 09b5bb43ed 052/125: Version 1.5.3, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 41b73ab51f 053/125: Fix insert of left parenthesis,
ELPA Syncer <=
- [nongnu] elpa/evil-lisp-state 4441fb049c 048/125: Update readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 33602d3edc 063/125: Typo in readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 10e001ab8c 079/125: Minor change in readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 1df2f73902 088/125: Fix Symbol's value as variable is void: evil-lisp-state-backward-prefix, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 1048c3df17 021/125: Fix redo key-binding, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state f40e85f19e 022/125: Remove `w` and `W` for now, seems to not work properly with evil, ELPA Syncer, 2022/01/06
- [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