Emacs Rename Variable
问题 How do I rename a variable in emacs? Eclipse has a neat "rename" refactoring action which lets you rename a variable in a scoping-aware way, which can be much easier to use than doing localized replace-strings, especially if the variable name is a character like e. Does emacs have a similar functionality built in? 回答1: iedit was made for this kind of thing. 回答2: New Emacs has M-s . to select symbol under cursor, then you can C-M-% and it will use currently selected symbol to perform