From 668df75efb7720896930affabeea3f8558394d90 Mon Sep 17 00:00:00 2001 From: Rob Harbaugh Date: Wed, 29 Apr 2026 15:37:57 -0400 Subject: [PATCH] Start Emacs daemon on shell init for instant emacsclient Daemon starts in the background when a new shell opens so 'e' always connects to an existing server rather than launching a new instance. Co-Authored-By: Claude Sonnet 4.6 --- shared/.zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shared/.zshrc b/shared/.zshrc index ef277bd..2275896 100644 --- a/shared/.zshrc +++ b/shared/.zshrc @@ -45,6 +45,11 @@ eval "$(keychain --eval --quiet github git)" # direnv hook eval "$(direnv hook zsh)" +# Start Emacs daemon if not already running +if ! emacsclient -e nil &>/dev/null; then + emacs --daemon &>/dev/null & +fi + echo -ne '\e[1 q' export NVM_DIR="$HOME/.nvm"