[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-lisp-state 2d13c56e14 042/125: Add expand-region depe
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-lisp-state 2d13c56e14 042/125: Add expand-region dependency |
Date: |
Thu, 6 Jan 2022 04:58:40 -0500 (EST) |
branch: elpa/evil-lisp-state
commit 2d13c56e14bb7e31c12fb1d4b494d97a45aac109
Author: syl20bnr <sylvain.benner@gmail.com>
Commit: syl20bnr <sylvain.benner@gmail.com>
Add expand-region dependency
---
README.md | 23 +++++++++++++++++++++++
evil-lisp-state.el | 5 +++--
2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 59c9966030..2508ec6809 100644
--- a/README.md
+++ b/README.md
@@ -3,6 +3,21 @@
Adds a new [evil][evil-link] state to navigate lisp code and edit sexp trees
using [smartparens][smartparens-link] and mnemonic key bindings.
+<!-- markdown-toc start - Don't edit this section. Run M-x
markdown-toc/generate-toc again -->
+**Table of Contents**
+
+- [evil-lisp-state](#evil-lisp-state)
+ - [Install](#install)
+ - [Package manager](#package-manager)
+ - [Manually](#manually)
+ - [Configuration](#configuration)
+ - [Backward prefix](#backward-prefix)
+ - [Text selection](#text-selection)
+ - [Key bindings map](#key-bindings-map)
+ - [Thanks](#thanks)
+
+<!-- markdown-toc end -->
+
## Install
### Package manager
@@ -51,6 +66,11 @@ whose value is determined by the custom variable
For instance, `slurping forward` is performed with `s` and the backward
version `slurping backward` with `ns`.
+## Text selection
+
+Text selection is done with [expand-region][expand-link] by pressing `v`.
+It is also possible to select the whole line with `V`.
+
## Key bindings map
While in `lisp state` (assume that `evil-lisp-state-backward-prefix` is set
@@ -100,6 +120,8 @@ Key Binding | Function
`u` | undo-tree-undo
`U` | sp-unwrap-sexp
`nU` | sp-backward-unwrap-sexp
+`v` | er/expand-region
+`V` | select whole line and switch to `visual state`
`x` | sp-delete-char
`X` | sp-backward-delete-char
`y` | sp-copy-sexp
@@ -116,3 +138,4 @@ have been a lot harder to implement.
[evil-link]: https://gitorious.org/evil/pages/Home
[smartparens-link]: https://github.com/Fuco1/smartparens/wiki
[melpa-link]: http://melpa.milkbox.net
+[expand-link]: https://github.com/magnars/expand-region.el
diff --git a/evil-lisp-state.el b/evil-lisp-state.el
index 521756482e..4aaeb0a647 100644
--- a/evil-lisp-state.el
+++ b/evil-lisp-state.el
@@ -5,8 +5,8 @@
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; Keywords: convenience editing evil smartparens lisp mnemonic
;; Created: 9 Oct 2014
-;; Version: 1.3
-;; Package-Requires: ((evil "1.0.9") (smartparens "1.6.1"))
+;; Version: 1.4
+;; Package-Requires: ((evil "1.0.9") (smartparens "1.6.1") (expand-region
"0.10.0"))
;; URL: https://github.com/syl20bnr/evil-lisp-state
;; This file is not part of GNU Emacs.
@@ -126,6 +126,7 @@ of COMMAND.
(define-key evil-lisp-state-map "T" 'sp-transpose-hybrid-sexp)
(define-key evil-lisp-state-map "u" 'undo-tree-undo)
(evil-lisp-state-define-key "U" unwrap-sexp t)
+(define-key evil-lisp-state-map "v" 'er/expand-region)
(define-key evil-lisp-state-map "x" 'sp-delete-char)
(define-key evil-lisp-state-map "X" 'sp-backward-delete-char)
(evil-lisp-state-define-key "y" copy-sexp t)
- [nongnu] elpa/evil-lisp-state 81ffba2855 086/125: Version 4.1, (continued)
- [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
- [nongnu] elpa/evil-lisp-state ca00f0f6f5 103/125: fix `evil-list-state` typo in readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state ab02bf8cd3 110/125: Version 8: use bind-map instead of evil-leader, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 6491bdb6ff 119/125: use bind-map :evil-use-local, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 82601dc5ed 117/125: Fix dumb error, ELPA Syncer, 2022/01/06
- [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 <=
- [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, 2022/01/06
- [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