5 ms·
> Bram admitted to using other editors on rare occasions, and said he always misses the dot (.) command, which repeats a change several times in different posit
by zeveb 10y ago
> Bram admitted to using other editors on rare occasions, and said he always misses the dot (.) command, which repeats a change several times in different positions, and the ability to record and replay a sequence of commands.
> “Just a simple ‘change this text into that text’ can be very laborious without a repeat command,” he said. “I haven’t seen another editor that provides this feature.”
Note that emacs has had the repeat command since version 20.3, released 19 August 1998[2]. I suppose that means he's not used it since then …
[1] https://www.gnu.org/software/emacs/manual/html_mono/efaq.html#index-Repeating-commands-many-times https://www.gnu.org/software/emacs/manual/html_mono/efaq.htm...
[2] https://www.emacswiki.org/emacs/EmacsReleaseDates https://www.emacswiki.org/emacs/EmacsReleaseDates
- to3m 10y agoHave you used vim? . is much closer to running a keyboard macro than it is to C-x z - only you don't have to record anything ahead of time, nor necessarily even realise until afterwards that you might want to reuse what you've just done. There's no precise equivalent in emacs. It's described here: http://vim.wikia.com/wiki/Repeat_last_change http://vim.wikia.com/wiki/Repeat_last_change C-x z is lame by comparison. Like, suppose you just typed in M-d h e l l o, and you press C-x z. It repeats the last command: self-insert-command. So you get an additional o. Thanks, Emacs! More comedy: after you move the cursor, perhaps planning to use C-x z to insert another o elsewhere in the document, C-x z now replays the last cursor movement command. (None of this is illogical, it's simply that C-x z is not, probably, very useful for editing text.) With vim, on the other hand, pressing . would replay the word deletion, followed by the insertion of "hello". And you can use other motion commands to move about the file before repeating it again, allowing you to perform this operation in multiple places.
- akacase 10y agohttps://github.com/wyrickre/dot-mode https://github.com/wyrickre/dot-mode, elisp is pretty awesome if you utilize cl-lib and eieio.