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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/iedit 21a60f2ea3 113/301: Add toogle key option


From: ELPA Syncer
Subject: [nongnu] elpa/iedit 21a60f2ea3 113/301: Add toogle key option
Date: Mon, 10 Jan 2022 22:58:55 -0500 (EST)

branch: elpa/iedit
commit 21a60f2ea3c188e15e9da0da11fee40adb449cf9
Author: Victor Ren <victorhge@gmail.com>
Commit: Victor Ren <victorhge@gmail.com>

    Add toogle key option
---
 iedit.el | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/iedit.el b/iedit.el
index 4589f4924e..e12432efe0 100644
--- a/iedit.el
+++ b/iedit.el
@@ -2,7 +2,7 @@
 
 ;; Copyright (C) 2010, 2011, 2012 Victor Ren
 
-;; Time-stamp: <2012-08-24 10:38:26 Victor Ren>
+;; Time-stamp: <2012-08-30 17:29:05 Victor Ren>
 ;; Author: Victor Ren <victorhge@gmail.com>
 ;; Keywords: occurrence region simultaneous refactoring
 ;; Version: 0.97
@@ -94,6 +94,11 @@ For example, when invoking command `iedit-mode' on the 
\"in\" in the
   :type 'boolean
   :group 'iedit)
 
+(defcustom iedit-toogle-key-default (kbd "C-;")
+  "If no-nil, the key is inserted into global-map, isearch-mode-map, esc-map 
and help-map."
+  :type 'vector
+  :group 'iedit)
+
 (defvar iedit-mode-hook nil
   "Function(s) to call after starting up an iedit.")
 
@@ -195,10 +200,10 @@ This is like `describe-bindings', but displays only Iedit 
keys."
     (describe-function 'iedit-mode)))
 
 ;;; Default key bindings:
-(define-key global-map (kbd "C-;") 'iedit-mode)
-(define-key isearch-mode-map (kbd "C-;") 'iedit-mode)
-(define-key esc-map (kbd "C-;") 'iedit-execute-last-modification)
-(define-key help-map (kbd "C-;") 'iedit-mode-toggle-on-function)
+(define-key global-map iedit-toogle-key-default 'iedit-mode)
+(define-key isearch-mode-map iedit-toogle-key-default 'iedit-mode)
+(define-key esc-map iedit-toogle-key-default 'iedit-execute-last-modification)
+(define-key help-map iedit-toogle-key-default 'iedit-mode-toggle-on-function)
 
 ;; Avoid to restore Iedit mode when restoring desktop
 (add-to-list 'desktop-minor-mode-handlers



reply via email to

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