Dispatch a Claude Prompt Straight from Emacs's Kill Ring

Posted on Sat 01 August 2026 in tech

Engineers write prompts as part of the job now, and being able to refer to them in an efficient manner is a valuable improvement to your workflow. Skip pasting file contents into Claude entirely: open find-file (C-x C-f) to surface the path Emacs already knows, select it and cut it into the kill ring (C-a, C-w), cancel out of the prompt without ever loading the file (C-g), then paste the path straight into Claude. Claude reads the file itself — you're handing over a reference, not copying and pasting content.

Bonus: point Claude Code at your live Emacs session directly. In ~/.claude/settings.json:

{
  "env": {
    "EDITOR": "emacsclient -a vi"
  }
}

Any time Claude Code needs to open an editor, it routes through emacsclient — falling back to vi if the Emacs server isn't already running.