It's wonderful if we can rename tag instantly, not rename from minibuffer.
And yes, this plugin is design for do this.
Clone or download this repository (path of the folder is the <path-to-instant-rename-tag>
used below).
In your ~/.emacs
, add the following two lines:
(add-to-list 'load-path "<path-to-instant-rename-tag>") ; add instant-rename-tag to your load-path
(require 'instant-rename-tag)
Note, this plugin depend on web-mode
, you need make sure install web-mode
first.
Bind your favorite key to functions:
Function | Description |
---|---|
instant-rename-tag | Rename tag under current cursor, call this command again if rename finish |
You don't need cancal tag mark manually by command instant-rename-tag
After you rename tag, tag will unmark automatically when you edit non-tag area continue.