## The challenge
Starting buffer:
Hello ,world !
Point: beginning of line
Target buffer:
Hello, world!
## Task
Fix the misplaced spaces around
, and ! without retyping the line.## 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.
## Solutions
Solution:
M-f C-f C-t M-f C-f C-tSetup: vanilla
Explanation: just moving and transposing
Solution:
F3 M-f C-f C-t F4 C-x eSetup: vanilla
Explanation: simple macro
Solution:
M-f C-d C-f SPC C-e C-b C-b C-dSetup: vanilla
Explanation: delete and write spaces
https://redd.it/1x1s14s
@r_emacs