4 ms·
Somehow, I was unaware of C-M-% for replacements, though I use M-% all the time for a (naive) string search then replace all instances by pressing the ! key. T
by koito17 3y ago
Somehow, I was unaware of C-M-% for replacements, though I use M-% all the time for a (naive) string search then replace all instances by pressing the ! key.
This is a very neat trick, and little things like this are why I keep using Emacs. Part of me wishes there were some "universal" version of the M-: keybind for evaluating elisp expressions in any interactive command.
- froh 3y agojust to be sure: you don't look for recursive edit do you? https://www.gnu.org/software/emacs/manual/html_node/emacs/Recursive-Edit.html https://www.gnu.org/software/emacs/manual/html_node/emacs/Re...
- taeric 3y agoI'm not clear what you mean there, but it seems that C-u C-x C-e, gets a lot of the way there?
- __david__ 3y agoIt's not exactly what you want, but "C-x ESC ESC" will bring up the last run command in lisp form and let you edit it before running it again. That's how I used to repeat M-% replacements before they added the nice history to it.
- kagevf 3y agoWow! and you can C-p back to see earlier ones too! Thank you for sharing this ... to me it's similar in impact to q: in vim.