Navigation Menu

Skip to content

Commit

Permalink
Avoid to restore Iedit mode when restoring desktop
Browse files Browse the repository at this point in the history
(add-to-list 'desktop-minor-mode-handlers
             '(iedit-mode . nil))
  • Loading branch information
victorhge committed Jul 4, 2012
1 parent 307262b commit c5ab2c5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions iedit.el
Expand Up @@ -2,10 +2,10 @@

;; Copyright (C) 2010, 2011, 2012 Victor Ren

;; Time-stamp: <2012-07-03 22:34:00 Victor Ren>
;; Time-stamp: <2012-07-04 10:07:47 Victor Ren>
;; Author: Victor Ren <victorhge@gmail.com>
;; Keywords: occurrence region simultaneous rectangle refactoring
;; Version: 0.95
;; Version: 0.97
;; X-URL: http://www.emacswiki.org/emacs/Iedit
;; Compatibility: GNU Emacs: 22.x, 23.x, 24.x

Expand Down Expand Up @@ -365,6 +365,9 @@ This is like `describe-bindings', but displays only Iedit keys."
(or (assq 'iedit-mode minor-mode-map-alist)
(setq minor-mode-map-alist
(cons (cons 'iedit-mode iedit-mode-map) minor-mode-map-alist)))
;; Avoid to restore Iedit mode when restoring desktop
(add-to-list 'desktop-minor-mode-handlers
'(iedit-mode . nil))

;;;###autoload
(defun iedit-mode (&optional arg)
Expand Down

0 comments on commit c5ab2c5

Please sign in to comment.