Welcome to Emacs Golf fewest keystrokes wins.
## The challenge
Starting buffer:
sun
moon
star
sky
sea
tree
rock
wind
fire
sand
Point: beginning of line 1
Target buffer:
1. sun
2. moon
3. star
4. sky
5. sea
6. tree
7. rock
8. wind
9. fire
10. sand
## Task
Prefix the ten lines with
1. through 10. .## Rules
- Everything is allowed: vanilla Emacs, Evil, Meow, packages, macros, Elisp, custom keybindings, external tools.
- The result must match the target exactly. Correctness beats brevity.
- One key event per stroke: a chord such as
C-a counts as one stroke.- Disclose any setup, packages, macros, or custom commands your solution requires.
- Count execution keystrokes, not the time you spent configuring Emacs.
## How to submit
Solution:
Setup:
Explanation:
The goal isn't to prove one editing style is superior. It's to discover how many different ways Emacs can solve the same problem.
May the shortest sequence win.
https://redd.it/1x2g49t
@r_emacs