TGViewer
/r/emacs /r/emacs @r_emacs · 81 subscribers
Post #28705 10
any other solutions ?

## 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-t
Setup: vanilla
Explanation: just moving and transposing

Solution: F3 M-f C-f C-t F4 C-x e
Setup: vanilla
Explanation: simple macro

Solution: M-f C-d C-f SPC C-e C-b C-b C-d
Setup: vanilla
Explanation: delete and write spaces


https://redd.it/1x1s14s
@r_emacs
Reddit From the emacs community on Reddit Explore this post and more from the emacs community
More from @r_emacs
  1. Oct 10, 2026# Emacs Golf #023 — Case-Insensitive Assassin Category: C. Search and replace Welcome to E…
  2. Oct 10, 2026How do you guys move between files within a project tree? Interested in how u guys quickly…
  3. Oct 10, 2026# Emacs Golf #011 Number CruncherCategory: B. Multi-line transformations Welcome to Emacs…
  4. Oct 10, 2026New Emacs keepass package I wrote a new all-singing, all dancing keepass package for emacs…
  5. Oct 9, 2026legmacs (emacs-like written in clojure dialect) compiled to WASM and running in browser ht…
  6. Oct 9, 2026Ayu themes for Emacs: night, dusk and day, built from the official palette I ported all th…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →