From dd506e1a2619c3da38ef72d4f5f475b97c5911d3 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 21 Jun 2015 15:13:59 -0700 Subject: [PATCH] emacs.sh updates. --- dotfiles/lib/shellenv/emacs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dotfiles/lib/shellenv/emacs.sh b/dotfiles/lib/shellenv/emacs.sh index 18176fd5..65c50923 100644 --- a/dotfiles/lib/shellenv/emacs.sh +++ b/dotfiles/lib/shellenv/emacs.sh @@ -9,6 +9,9 @@ # alias terminal_emacs='_emacs -t' # is_ssh && emacs="terminal_emacs" +alias emacs='emacsclient -tn' +is_osx && alias emacs='emacsclient -cn' + function kill_all_emacs { emacs_pids | xargs kill -9 } @@ -113,6 +116,6 @@ function time_emacs { # Make emacs the default editor. export EDITOR="$HOME/.lib/editor.sh" +export ALTERNATE_EDITOR="" export VISUAL="$EDITOR" export GIT_EDITOR="$EDITOR" -export ALTERNATE_EDITOR=""