emacs-elpa-diffs
[Top][All Lists]
Advanced

[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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]