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 <noreply@anthropic.com>
This commit is contained in:
@@ -45,6 +45,11 @@ eval "$(keychain --eval --quiet github git)"
|
|||||||
# direnv hook
|
# direnv hook
|
||||||
eval "$(direnv hook zsh)"
|
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'
|
echo -ne '\e[1 q'
|
||||||
|
|
||||||
export NVM_DIR="$HOME/.nvm"
|
export NVM_DIR="$HOME/.nvm"
|
||||||
|
|||||||
Reference in New Issue
Block a user