To install this package, run in Emacs:
M-x package-install RET iedit RET
This package includes Emacs minor modes (iedit-mode and iedit-rectangle-mode) based on a API library (iedit-lib) and allows you to alter one occurrence of some text in a buffer (possibly narrowed) or region, and simultaneously have other occurrences changed in the same way, with visual feedback as you type.
`iedit-mode' is a great alternative of build-in replace commands:
Normal work flow of Iedit mode is like:
Many other work flows to highlight occurrences are possible, for example, activation from isearch, incremental selection and markup tag pair selection.
You can also use Iedit mode as a quick way to temporarily show only the buffer lines that match the current text being edited. This gives you the effect of a temporary `keep-lines' or `occur'. To get this effect, hit C-' when in Iedit mode - it toggles hiding non-matching lines.
`iedit-mode' is optimized for renaming refactoring in many ways:
Iedit-rectangle-mode provides rectangle support with visible rectangle highlighting, which is similar with cua mode rectangle support. But it's lighter weight and uses iedit mechanisms.
There are also some other facilities you may never think about. Refer to the document of function `iedit-mode' (C-h f iedit-mode RET) for more details.
The easiest way to install and keep Iedit up-to-date is using Emacs’s built-in package manager. Iedit is available in the MELPA repository. Refer to http://melpa.org/#/getting-started for how to install a package from MELPA.
You can also clone Iedit's repository or download a zip package from GitHub https://github.com/victorhge/iedit
You will need to add a few extra lines in your .emacs file, to make your Emacs knows about the package:
(add-to-list 'load-path "~/dir/to/your/iedit") (require 'iedit)
iedit-0.9.9.9.tar.lz | 2022-Jan-11 | 17.8 KiB |