From b15e584c1a5a32b8a61feca0d954de6af15da8ed Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 27 Apr 2014 18:12:11 -0400 Subject: Emacs: don't clobber server files of other hosts --- .config/bash/rc.d/emacs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config/bash/rc.d/emacs.sh') diff --git a/.config/bash/rc.d/emacs.sh b/.config/bash/rc.d/emacs.sh index 165d71e..b402932 100644 --- a/.config/bash/rc.d/emacs.sh +++ b/.config/bash/rc.d/emacs.sh @@ -1,7 +1,7 @@ #!/bin/bash if [[ $TERM == eterm* ]]; then - SELECTED_EDITOR='emacsclient' + SELECTED_EDITOR="emacsclient -f '$HOME/.emacs.d/server-$HOSTNAME/server'" EDITOR=$SELECTED_EDITOR VISUAL=$SELECTED_EDITOR export SELECTED_EDITOR EDITOR VISUAL @@ -10,7 +10,7 @@ if [[ $TERM == eterm* ]]; then # _emacs_run LISP _emacs_run() { - emacsclient -e "$*" 2>/dev/null + emacsclient -f "$HOME/.emacs.d/server-$HOSTNAME/server" -e "$*" 2>/dev/null } # _emacs_quote UNQUOTED_STRING _emacs_quote() { -- cgit v1.2.3-54-g00ecf