[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-escape 6cb4fa408a 026/133: Add evil-iedit-state
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-escape 6cb4fa408a 026/133: Add evil-iedit-state |
Date: |
Wed, 3 Jan 2024 21:59:49 -0500 (EST) |
branch: elpa/evil-escape
commit 6cb4fa408acccc9c7b0cde1441ce68368344ae5d
Author: syl20bnr <sylvain.benner@gmail.com>
Commit: syl20bnr <sylvain.benner@gmail.com>
Add evil-iedit-state
---
README.md | 3 ++-
evil-escape.el | 23 +++++++++++++++++++----
2 files changed, 21 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 63bf39ed67..070ab09ada 100644
--- a/README.md
+++ b/README.md
@@ -19,8 +19,9 @@ Emacs.
Press quickly `fd` (or the 2-keys sequence of your choice) to:
-- escape from all evil states to normal state
+- escape from all stock evil states to normal state
- escape from evil-lisp-state to normal state
+- escape from evil-iedit-state to normal state
- abort evil ex command
- quit minibuffer
- abort isearch
diff --git a/evil-escape.el b/evil-escape.el
index 1395c2fd12..2c0f7bb105 100644
--- a/evil-escape.el
+++ b/evil-escape.el
@@ -5,7 +5,7 @@
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; Keywords: convenience editing evil
;; Created: 22 Oct 2014
-;; Version: 2.01
+;; Version: 2.02
;; Package-Requires: ((emacs "24") (evil "1.0.9"))
;; URL: https://github.com/syl20bnr/evil-escape
@@ -29,8 +29,9 @@
;; Press `fd` quickly to:
;; ----------------------
-;; - escape from all evil states to normal state
+;; - escape from all stock evil states to normal state
;; - escape from evil-lisp-state to normal state
+;; - escape from evil-iedit-state to normal state
;; - abort evil ex command
;; - quit minibuffer
;; - abort isearch
@@ -195,7 +196,14 @@ with a key sequence."
:delete-func isearch-delete-char))
;; lisp state if installed
(eval-after-load 'evil-lisp-state
- '(eval '(evil-escape-define-escape "lisp-state" evil-lisp-state-map
evil-normal-state))))
+ '(eval '(evil-escape-define-escape "lisp-state" evil-lisp-state-map
evil-normal-state)))
+ ;; iedit state if installed
+ (eval-after-load 'evil-iedit-state
+ '(progn
+ (eval '(evil-escape-define-escape "iedit-state" evil-iedit-state-map
+ evil-iedit-state/quit-iedit-mode))
+ (eval '(evil-escape-define-escape "iedit-insert-state"
evil-iedit-insert-state-map
+ evil-iedit-state/quit-iedit-mode)))))
(defun evil-escape--undefine-keys ()
"Unset the key bindings defined in `evil-escape--define-keys'."
@@ -207,7 +215,14 @@ with a key sequence."
;; isearch
(if evil-escape-isearch-shadowed-func
(define-key isearch-mode-map
- (kbd first-key) evil-escape-isearch-shadowed-func))))
+ (kbd first-key) evil-escape-isearch-shadowed-func))
+ ;; list state
+ (eval-after-load 'evil-lisp-state
+ '(define-key evil-lisp-state-map (kbd first-key) nil))
+ ;; iedit state
+ (eval-after-load 'evil-iedit-state
+ '(progn (define-key evil-iedit-state-map (kbd first-key) nil)
+ (define-key evil-iedit-insert-state-map (kbd first-key) nil)))))
(defun evil-escape--default-insert-func (key)
"Insert KEY in current buffer if not read only."
- [nongnu] elpa/evil-escape 05709479ed 010/133: Add badge for melpa stable, (continued)
- [nongnu] elpa/evil-escape 05709479ed 010/133: Add badge for melpa stable, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 1fe3759ab4 014/133: Fix 'commandp is nil` when search for `f` in isearch, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 5da641b6e6 019/133: Quit ert buffers, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape fe21e8f256 004/133: Fix error in readme, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 07c6c1b4da 007/133: Fixes #2 Symbol's value as variable is void: isearch-abort, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 1d09324c72 011/133: Fix byte-compilation and defcustom, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 7aa2bb2155 024/133: Suppress key-chord dependency (v2.0), ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 2e7bf1e62e 021/133: Support undo-tree, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape e0a0c9a9ee 023/133: Add support for paradox and gist-list menu, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 0b62cb6637 025/133: Fix multiple inserted occurrences of `f` in isearch and ex-command context, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 6cb4fa408a 026/133: Add evil-iedit-state,
ELPA Syncer <=
- [nongnu] elpa/evil-escape 6d46b81bbc 030/133: Fix regression for evil-iedit-state, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 3637f13210 055/133: Correctly handle iedit-state, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape da5498d25e 035/133: Correctly restore evil-lisp-state shadowed function by evil-escape, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape cf3e18673d 051/133: Undefine mapping on first key when evil-escape is disabled, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape cbfc43840f 063/133: Ensure that map is defined when undefining keys, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape b8c9b4631d 049/133: Add support for helm-ag-edit, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape b205051996 056/133: More stable passthrough, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape afa9c9c321 067/133: Fixes #37 Capital r deletes a char inappropriately, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 67843e9dd4 041/133: Fix recursive `f` input during isearch in certain buffers, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape e78ffcdbeb 036/133: Explicitly disable any running transient map, ELPA Syncer, 2024/01/03