TGViewer
/r/emacs /r/emacs @r_emacs · 81 subscribers
Post #28719 12
# Emacs Golf #029 Register Roulette

Category: D. Emacs-specific power moves

Welcome to Emacs Golf fewest keystrokes wins.

## The challenge
Starting buffer:

SNIPPET
==
^^
==
^^
==
^^


Point: beginning of line 1

Target buffer:

SNIPPET
==
SNIPPET
==
SNIPPET
==
SNIPPET


## Task
Copy the line SNIPPET into a register once, then replace each ^^ with the register's contents at all three positions.

## 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/1x46fk3
@r_emacs
Reddit From the emacs community on Reddit Explore this post and more from the emacs community
More from @r_emacs
  1. Oct 13, 2026Rome Wasn't Built In A Day, More Like 10 Minutes https://www.youtube.com/watch?v=BuqZb6Avd…
  2. Oct 13, 2026How can you design your init.el and use-package clauses so that features which are UI base…
  3. Oct 13, 2026My org-attach config, only place files go (paste / drag / download), with names I can actu…
  4. Oct 13, 2026arena](https://preview.redd.it/rpohg4omi4vh1.png?width=2208&format=png&auto=webp&s=61fe901…
  5. Oct 13, 2026ETAF: a framework and ecosystem for building full text applications in Emacs - music playe…
  6. Oct 12, 2026kubect: A text focused Emacs interface Kubernetes workflows through kubectl I finally "mer…
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 →