Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Add toogle key option

  • Loading branch information...
commit 21a60f2ea3c188e15e9da0da11fee40adb449cf9 1 parent 3cf5e8f
@victorhge authored
Showing with 10 additions and 5 deletions.
  1. +10 −5 iedit.el
15 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 <>
;; 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

0 comments on commit 21a60f2

Please sign in to comment.
Something went wrong with that request. Please try again.