Skip to content

Conversation

@tlockney
Copy link
Owner

@tlockney tlockney commented Jan 5, 2026

The EMACS_SOCKET_NAME must match Emacs's server-socket-dir logic:

  1. Use XDG_RUNTIME_DIR/emacs if XDG_RUNTIME_DIR is set (any platform)
  2. Fall back to $TMPDIR/emacs on Darwin
  3. Fall back to /tmp/emacs on Linux

Since tools.zsh sets XDG_RUNTIME_DIR on Darwin (to $TMPDIR/user/$UID), that path takes precedence over the Darwin-specific TMPDIR fallback.

The EMACS_SOCKET_NAME must match Emacs's server-socket-dir logic:
1. Use XDG_RUNTIME_DIR/emacs if XDG_RUNTIME_DIR is set (any platform)
2. Fall back to $TMPDIR/emacs on Darwin
3. Fall back to /tmp/emacs<uid> on Linux

Since tools.zsh sets XDG_RUNTIME_DIR on Darwin (to $TMPDIR/user/$UID),
that path takes precedence over the Darwin-specific TMPDIR fallback.
@tlockney tlockney force-pushed the claude/fix-emacs-daemon-socket-JcDLY branch from 41fdf26 to ed51863 Compare January 5, 2026 08:09
@tlockney tlockney merged commit d681a3e into main Jan 5, 2026
1 check failed
@tlockney tlockney deleted the claude/fix-emacs-daemon-socket-JcDLY branch January 5, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants